Skip to content

Commit

Permalink
Fix some doc typos (#721)
Browse files Browse the repository at this point in the history
Merges #667 and
#693 but fixes that they edited
the generated docs instead of the source.

---------

Co-authored-by: Yotam Vaknin <[email protected]>
Co-authored-by: nickdgardner <[email protected]>
  • Loading branch information
3 people authored Mar 18, 2024
1 parent ca1fbc3 commit 5f35408
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dev/gen_stim_stub_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions doc/python_api_reference_vDev.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/stim.pyi
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions glue/python/src/stim/__init__.pyi
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/stim/circuit/circuit.pybind.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ void stim_pybind::pybind_circuit_methods(pybind11::module &, pybind11::class_<Ci
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
Expand Down Expand Up @@ -2091,7 +2091,7 @@ void stim_pybind::pybind_circuit_methods(pybind11::module &, pybind11::class_<Ci
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
Expand Down Expand Up @@ -2166,7 +2166,7 @@ void stim_pybind::pybind_circuit_methods(pybind11::module &, pybind11::class_<Ci
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
Expand Down

0 comments on commit 5f35408

Please sign in to comment.