diff --git a/dev/gen_stim_stub_file.py b/dev/gen_stim_stub_file.py index 45676c46b..333a27d0e 100644 --- a/dev/gen_stim_stub_file.py +++ b/dev/gen_stim_stub_file.py @@ -18,7 +18,7 @@ def main(): version = "v" + version print(f''' """Stim {version}: a fast quantum stabilizer circuit library.""" -# (This a stubs file describing the classes and methods in stim.) +# (This is a stubs file describing the classes and methods in stim.) from __future__ import annotations from typing import overload, TYPE_CHECKING, List, Dict, Tuple, Any, Union, Iterable, Optional if TYPE_CHECKING: diff --git a/doc/python_api_reference_vDev.md b/doc/python_api_reference_vDev.md index 71c5fd22d..7dd58d90e 100644 --- a/doc/python_api_reference_vDev.md +++ b/doc/python_api_reference_vDev.md @@ -1538,7 +1538,7 @@ def detector_error_model( error mechanisms). When set to true, the probabilities of the disjoint cases are instead assumed to be independent probabilities. For example, a `PAULI_CHANNEL_1(0.1, 0.2, 0.0)` becomes equivalent to an - `X_ERROR(0.1)` followed by a `Z_ERROR(0.2)`. This assumption is an + `X_ERROR(0.1)` followed by a `Y_ERROR(0.2)`. This assumption is an approximation, but it is a good approximation for small probabilities. This argument can also be set to a probability between 0 and 1, setting @@ -2385,7 +2385,7 @@ def likeliest_error_sat_problem( wcnf = WCNF(from_string="p wcnf 1 2 3\n3 -1 0\n3 1 0\n") with RC2(wcnf) as rc2: - print(rc2.compute()) + print(rc2.compute()) print(rc2.cost) Much faster solvers are available online. For example, you can download @@ -2772,7 +2772,7 @@ def shortest_error_sat_problem( wcnf = WCNF(from_string="p wcnf 1 2 3\n3 -1 0\n3 1 0\n") with RC2(wcnf) as rc2: - print(rc2.compute()) + print(rc2.compute()) print(rc2.cost) Much faster solvers are available online. For example, you can download diff --git a/doc/stim.pyi b/doc/stim.pyi index d488385f6..54fbd7e35 100644 --- a/doc/stim.pyi +++ b/doc/stim.pyi @@ -1,5 +1,5 @@ """Stim (Development Version): a fast quantum stabilizer circuit library.""" -# (This a stubs file describing the classes and methods in stim.) +# (This is a stubs file describing the classes and methods in stim.) from __future__ import annotations from typing import overload, TYPE_CHECKING, List, Dict, Tuple, Any, Union, Iterable, Optional if TYPE_CHECKING: @@ -958,7 +958,7 @@ class Circuit: error mechanisms). When set to true, the probabilities of the disjoint cases are instead assumed to be independent probabilities. For example, a `PAULI_CHANNEL_1(0.1, 0.2, 0.0)` becomes equivalent to an - `X_ERROR(0.1)` followed by a `Z_ERROR(0.2)`. This assumption is an + `X_ERROR(0.1)` followed by a `Y_ERROR(0.2)`. This assumption is an approximation, but it is a good approximation for small probabilities. This argument can also be set to a probability between 0 and 1, setting diff --git a/glue/python/src/stim/__init__.pyi b/glue/python/src/stim/__init__.pyi index d488385f6..54fbd7e35 100644 --- a/glue/python/src/stim/__init__.pyi +++ b/glue/python/src/stim/__init__.pyi @@ -1,5 +1,5 @@ """Stim (Development Version): a fast quantum stabilizer circuit library.""" -# (This a stubs file describing the classes and methods in stim.) +# (This is a stubs file describing the classes and methods in stim.) from __future__ import annotations from typing import overload, TYPE_CHECKING, List, Dict, Tuple, Any, Union, Iterable, Optional if TYPE_CHECKING: @@ -958,7 +958,7 @@ class Circuit: error mechanisms). When set to true, the probabilities of the disjoint cases are instead assumed to be independent probabilities. For example, a `PAULI_CHANNEL_1(0.1, 0.2, 0.0)` becomes equivalent to an - `X_ERROR(0.1)` followed by a `Z_ERROR(0.2)`. This assumption is an + `X_ERROR(0.1)` followed by a `Y_ERROR(0.2)`. This assumption is an approximation, but it is a good approximation for small probabilities. This argument can also be set to a probability between 0 and 1, setting diff --git a/src/stim/circuit/circuit.pybind.cc b/src/stim/circuit/circuit.pybind.cc index d1a756b13..d459a2704 100644 --- a/src/stim/circuit/circuit.pybind.cc +++ b/src/stim/circuit/circuit.pybind.cc @@ -1704,7 +1704,7 @@ void stim_pybind::pybind_circuit_methods(pybind11::module &, pybind11::class_