From 1fd78270164411de3c6fa28e5f2035269ec17654 Mon Sep 17 00:00:00 2001 From: Craig Gidney Date: Tue, 24 Sep 2024 00:57:56 -0700 Subject: [PATCH] Fix docstring typo in `to_qasm` (#836) Fixes https://github.com/quantumlib/Stim/issues/691 --- 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 1399c1a9..784cb9e9 100644 --- a/doc/python_api_reference_vDev.md +++ b/doc/python_api_reference_vDev.md @@ -3339,8 +3339,8 @@ def to_qasm( This should be set to 2 or to 3. Differences between the versions are: - - Support for operations on classical bits operations (only version - 3). This means DETECTOR and OBSERVABLE_INCLUDE only work with + - Support for operations on classical bits (only version 3). + This means DETECTOR and OBSERVABLE_INCLUDE only work with version 3. - Support for feedback operations (only version 3). - Support for subroutines (only version 3). Without subroutines, diff --git a/doc/stim.pyi b/doc/stim.pyi index d2e6ab0f..c629b71e 100644 --- a/doc/stim.pyi +++ b/doc/stim.pyi @@ -2573,8 +2573,8 @@ class Circuit: This should be set to 2 or to 3. Differences between the versions are: - - Support for operations on classical bits operations (only version - 3). This means DETECTOR and OBSERVABLE_INCLUDE only work with + - Support for operations on classical bits (only version 3). + This means DETECTOR and OBSERVABLE_INCLUDE only work with version 3. - Support for feedback operations (only version 3). - Support for subroutines (only version 3). Without subroutines, diff --git a/glue/python/src/stim/__init__.pyi b/glue/python/src/stim/__init__.pyi index d2e6ab0f..c629b71e 100644 --- a/glue/python/src/stim/__init__.pyi +++ b/glue/python/src/stim/__init__.pyi @@ -2573,8 +2573,8 @@ class Circuit: This should be set to 2 or to 3. Differences between the versions are: - - Support for operations on classical bits operations (only version - 3). This means DETECTOR and OBSERVABLE_INCLUDE only work with + - Support for operations on classical bits (only version 3). + This means DETECTOR and OBSERVABLE_INCLUDE only work with version 3. - Support for feedback operations (only version 3). - Support for subroutines (only version 3). Without subroutines, diff --git a/src/stim/circuit/circuit.pybind.cc b/src/stim/circuit/circuit.pybind.cc index 8f5b78bd..dea61d64 100644 --- a/src/stim/circuit/circuit.pybind.cc +++ b/src/stim/circuit/circuit.pybind.cc @@ -1663,8 +1663,8 @@ void stim_pybind::pybind_circuit_methods(pybind11::module &, pybind11::class_