@@ -62,6 +62,7 @@ API references for stable versions are kept on the [stim github wiki](https://gi
6262 - [`stim.Circuit.to_tableau`](#stim.Circuit.to_tableau)
6363 - [`stim.Circuit.with_inlined_feedback`](#stim.Circuit.with_inlined_feedback)
6464 - [`stim.Circuit.without_noise`](#stim.Circuit.without_noise)
65+ - [`stim.Circuit.without_tags`](#stim.Circuit.without_tags)
6566- [`stim.CircuitErrorLocation`](#stim.CircuitErrorLocation)
6667 - [`stim.CircuitErrorLocation.__init__`](#stim.CircuitErrorLocation.__init__)
6768 - [`stim.CircuitErrorLocation.flipped_measurement`](#stim.CircuitErrorLocation.flipped_measurement)
@@ -187,6 +188,7 @@ API references for stable versions are kept on the [stim github wiki](https://gi
187188 - [`stim.DetectorErrorModel.rounded`](#stim.DetectorErrorModel.rounded)
188189 - [`stim.DetectorErrorModel.shortest_graphlike_error`](#stim.DetectorErrorModel.shortest_graphlike_error)
189190 - [`stim.DetectorErrorModel.to_file`](#stim.DetectorErrorModel.to_file)
191+ - [`stim.DetectorErrorModel.without_tags`](#stim.DetectorErrorModel.without_tags)
190192- [`stim.ExplainedError`](#stim.ExplainedError)
191193 - [`stim.ExplainedError.__init__`](#stim.ExplainedError.__init__)
192194 - [`stim.ExplainedError.circuit_error_locations`](#stim.ExplainedError.circuit_error_locations)
@@ -3593,6 +3595,33 @@ def without_noise(
35933595 """
35943596```
35953597
3598+ <a name="stim.Circuit.without_tags"></a>
3599+ ```python
3600+ # stim.Circuit.without_tags
3601+
3602+ # (in class stim.Circuit)
3603+ def without_tags(
3604+ self,
3605+ ) -> stim.Circuit:
3606+ """Returns a copy of the circuit with all tags removed.
3607+
3608+ Returns:
3609+ A `stim.Circuit` with the same instructions except all tags have been
3610+ removed.
3611+
3612+ Examples:
3613+ >>> import stim
3614+ >>> stim.Circuit('''
3615+ ... X[test-tag] 0
3616+ ... M[test-tag-2](0.125) 0
3617+ ... ''').without_tags()
3618+ stim.Circuit('''
3619+ X 0
3620+ M(0.125) 0
3621+ ''')
3622+ """
3623+ ```
3624+
35963625<a name="stim.CircuitErrorLocation"></a>
35973626```python
35983627# stim.CircuitErrorLocation
@@ -7589,6 +7618,31 @@ def to_file(
75897618 """
75907619```
75917620
7621+ <a name="stim.DetectorErrorModel.without_tags"></a>
7622+ ```python
7623+ # stim.DetectorErrorModel.without_tags
7624+
7625+ # (in class stim.DetectorErrorModel)
7626+ def without_tags(
7627+ self,
7628+ ) -> stim.DetectorErrorModel:
7629+ """Returns a copy of the detector error model with all tags removed.
7630+
7631+ Returns:
7632+ A `stim.DetectorErrorModel` with the same instructions except all tags have
7633+ been removed.
7634+
7635+ Examples:
7636+ >>> import stim
7637+ >>> stim.DetectorErrorModel('''
7638+ ... error[test-tag](0.25) D0
7639+ ... ''').without_tags()
7640+ stim.DetectorErrorModel('''
7641+ error(0.25) D0
7642+ ''')
7643+ """
7644+ ```
7645+
75927646<a name="stim.ExplainedError"></a>
75937647```python
75947648# stim.ExplainedError
0 commit comments