@@ -849,7 +849,7 @@ def append(
849849@overload
850850def append(
851851 self,
852- name: Union[stim.CircuitOperation , stim.CircuitRepeatBlock],
852+ name: Union[stim.CircuitInstruction , stim.CircuitRepeatBlock, stim.Circuit ],
853853) -> None:
854854 pass
855855def append(
@@ -1102,6 +1102,9 @@ def compile_m2d_converter(
11021102) -> stim.CompiledMeasurementsToDetectionEventsConverter:
11031103 """Creates a measurement-to-detection-event converter for the given circuit.
11041104
1105+ The converter can efficiently compute detection events and observable flips
1106+ from raw measurement data.
1107+
11051108 The converter uses a noiseless reference sample, collected from the circuit
11061109 using stim's Tableau simulator during initialization of the converter, as a
11071110 baseline for determining what the expected value of a detector is.
@@ -2466,9 +2469,10 @@ def likeliest_error_sat_problem(
24662469 """Makes a maxSAT problem for the circuit's likeliest undetectable logical error.
24672470
24682471 The output is a string describing the maxSAT problem in WDIMACS format
2469- (see https://maxhs.org/docs/wdimacs.html). The optimal solution to the
2470- problem is the highest likelihood set of error mechanisms that combine to
2471- flip any logical observable while producing no detection events).
2472+ (see https://jix.github.io/varisat/manual/0.2.0/formats/dimacs.html). The
2473+ optimal solution to the problem is the highest likelihood set of error
2474+ mechanisms that combine to flip any logical observable while producing no
2475+ detection events).
24722476
24732477 If there are any errors with probability p > 0.5, they are inverted so
24742478 that the resulting weight ends up being positive. If there are errors
@@ -2965,11 +2969,11 @@ def shortest_error_sat_problem(
29652969 """Makes a maxSAT problem of the circuit's distance, that other tools can solve.
29662970
29672971 The output is a string describing the maxSAT problem in WDIMACS format
2968- (see https://maxhs.org/docs/wdimacs. html). The optimal solution to the
2969- problem is the fault distance of the circuit (the minimum number of error
2970- mechanisms that combine to flip any logical observable while producing no
2971- detection events). This method ignores the probabilities of the error
2972- mechanisms since it only cares about minimizing the number of errors
2972+ (see https://jix.github.io/varisat/manual/0.2.0/formats/dimacs. html). The
2973+ optimal solution to the problem is the fault distance of the circuit (the
2974+ minimum number of error mechanisms that combine to flip any logical observable
2975+ while producing no detection events). This method ignores the probabilities of
2976+ the error mechanisms since it only cares about minimizing the number of errors
29732977 triggered.
29742978
29752979 There are many tools that can solve maxSAT problems in WDIMACS format.
@@ -3449,7 +3453,7 @@ def to_crumble_url(
34493453 ... CNOT 0 1
34503454 ... S 1
34513455 ... ''').to_crumble_url()
3452- 'https://algassert.com/crumble#circuit=H_0;CX_0_1;S_1 '
3456+ 'https://algassert.com/crumble#circuit=H_0;CX_0_1;S_1_ '
34533457
34543458 >>> circuit = stim.Circuit('''
34553459 ... M(0.25) 0 1 2
@@ -3459,7 +3463,7 @@ def to_crumble_url(
34593463 ... ''')
34603464 >>> err = circuit.shortest_graphlike_error(canonicalize_circuit_errors=True)
34613465 >>> circuit.to_crumble_url(skip_detectors=True, mark={1: err})
3462- 'https://algassert.com/crumble#circuit=;TICK;MARKX(1)1;MARKX(1)2;MARKX(1)0;TICK;M(0.25)0_1_2;OI(0)rec[-1]'
3466+ 'https://algassert.com/crumble#circuit=;TICK;MARKX(1)1;MARKX(1)2;MARKX(1)0;TICK;M(0.25)0_1_2;OI(0)rec[-1]_ '
34633467 """
34643468```
34653469
@@ -7086,9 +7090,10 @@ def append(
70867090 """Appends an instruction to the detector error model.
70877091
70887092 Args:
7089- instruction: Either the name of an instruction, a stim.DemInstruction, or a
7090- stim.DemRepeatBlock. The `parens_arguments`, `targets`, and 'tag'
7091- arguments should be given if and only if the instruction is a name.
7093+ instruction: Either the name of an instruction, a stim.DemInstruction, a
7094+ stim.DemRepeatBlock. or a stim.DetectorErrorModel. The
7095+ `parens_arguments`, `targets`, and 'tag' arguments should be given iff
7096+ the instruction is a name.
70927097 parens_arguments: Numeric values parameterizing the instruction. The numbers
70937098 inside parentheses in a detector error model file (eg. the `0.25` in
70947099 `error(0.25) D0`). This argument can be given either a list of doubles,
@@ -7675,7 +7680,7 @@ def shortest_graphlike_error(
76757680 the race to find a solution.
76767681
76777682 Args:
7678- ignore_ungraphlike_errors: Defaults to False . When False, an exception is
7683+ ignore_ungraphlike_errors: Defaults to True . When False, an exception is
76797684 raised if there are any errors in the model that are not graphlike. When
76807685 True, those errors are skipped as if they weren't present.
76817686
0 commit comments