From f5d53cb4d48449eb7cb7bbbf658f89e2cbab3ba4 Mon Sep 17 00:00:00 2001 From: Craig Gidney Date: Mon, 11 Mar 2024 17:43:20 -0700 Subject: [PATCH] typo --- doc/python_api_reference_vDev.md | 4 ++-- doc/stim.pyi | 4 ++-- glue/python/src/stim/__init__.pyi | 4 ++-- src/stim/circuit/circuit.pybind.cc | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/python_api_reference_vDev.md b/doc/python_api_reference_vDev.md index cec5b1f0a..b09e70049 100644 --- a/doc/python_api_reference_vDev.md +++ b/doc/python_api_reference_vDev.md @@ -1284,13 +1284,13 @@ def detecting_regions( included_targets: Iterable[Iterable[float] | str | stim.DemTarget] | None = None, included_ticks: None | Iterable[int] = None, ) -> Dict[stim.DemTarget, Dict[int, stim.PauliString]]: - """Records where detectors are sensitive to errors over time. + """Records where detectors and observables are sensitive to errors over time. The result of this method is a nested dictionary, mapping detectors/observables and ticks to Pauli sensitivities for that detector/observable at that time. For example, if observable 2 has Z-type sensitivity on qubits 5 and 6 during - tick 3, then `result[stim.DemTarget.observable(2)][3]` will be equal to + tick 3, then `result[stim.target_logical_observable_id(2)][3]` will be equal to `stim.PauliString("Z5*Z6")`. If you want sensitivities from more places in the circuit, besides just at the diff --git a/doc/stim.pyi b/doc/stim.pyi index aec46559d..9175418de 100644 --- a/doc/stim.pyi +++ b/doc/stim.pyi @@ -722,13 +722,13 @@ class Circuit: included_targets: Iterable[Iterable[float] | str | stim.DemTarget] | None = None, included_ticks: None | Iterable[int] = None, ) -> Dict[stim.DemTarget, Dict[int, stim.PauliString]]: - """Records where detectors are sensitive to errors over time. + """Records where detectors and observables are sensitive to errors over time. The result of this method is a nested dictionary, mapping detectors/observables and ticks to Pauli sensitivities for that detector/observable at that time. For example, if observable 2 has Z-type sensitivity on qubits 5 and 6 during - tick 3, then `result[stim.DemTarget.observable(2)][3]` will be equal to + tick 3, then `result[stim.target_logical_observable_id(2)][3]` will be equal to `stim.PauliString("Z5*Z6")`. If you want sensitivities from more places in the circuit, besides just at the diff --git a/glue/python/src/stim/__init__.pyi b/glue/python/src/stim/__init__.pyi index aec46559d..9175418de 100644 --- a/glue/python/src/stim/__init__.pyi +++ b/glue/python/src/stim/__init__.pyi @@ -722,13 +722,13 @@ class Circuit: included_targets: Iterable[Iterable[float] | str | stim.DemTarget] | None = None, included_ticks: None | Iterable[int] = None, ) -> Dict[stim.DemTarget, Dict[int, stim.PauliString]]: - """Records where detectors are sensitive to errors over time. + """Records where detectors and observables are sensitive to errors over time. The result of this method is a nested dictionary, mapping detectors/observables and ticks to Pauli sensitivities for that detector/observable at that time. For example, if observable 2 has Z-type sensitivity on qubits 5 and 6 during - tick 3, then `result[stim.DemTarget.observable(2)][3]` will be equal to + tick 3, then `result[stim.target_logical_observable_id(2)][3]` will be equal to `stim.PauliString("Z5*Z6")`. If you want sensitivities from more places in the circuit, besides just at the diff --git a/src/stim/circuit/circuit.pybind.cc b/src/stim/circuit/circuit.pybind.cc index 1a380fac0..a29042f8e 100644 --- a/src/stim/circuit/circuit.pybind.cc +++ b/src/stim/circuit/circuit.pybind.cc @@ -2150,13 +2150,13 @@ void stim_pybind::pybind_circuit_methods(pybind11::module &, pybind11::class_ Dict[stim.DemTarget, Dict[int, stim.PauliString]]: - Records where detectors are sensitive to errors over time. + Records where detectors and observables are sensitive to errors over time. The result of this method is a nested dictionary, mapping detectors/observables and ticks to Pauli sensitivities for that detector/observable at that time. For example, if observable 2 has Z-type sensitivity on qubits 5 and 6 during - tick 3, then `result[stim.DemTarget.observable(2)][3]` will be equal to + tick 3, then `result[stim.target_logical_observable_id(2)][3]` will be equal to `stim.PauliString("Z5*Z6")`. If you want sensitivities from more places in the circuit, besides just at the