Skip to content

Commit

Permalink
Add stim.Flow and stim.Circuit.has_all_flows (#700)
Browse files Browse the repository at this point in the history
- Add `stim.Flow` class for representing stabilizer flows
- Refactor `stim.has_flow` to only take a `stim.Flow` [breaking change
vs dev versions]
- Add `stim.Circuit.has_all_flows` method for more efficiently checking
flows

In C++ land:
- Refactor more methods to take `std::string_view` instead of `const
char *` or `std::string`
- Rename `stim::StabilizerFlow<W>` -> `stim::Flow<W>`
- Refactor `stim::Flow<W>` to allow non-negative measurement indices
  • Loading branch information
Strilanc authored Feb 17, 2024
1 parent 1b09d94 commit 1f32ef6
Show file tree
Hide file tree
Showing 29 changed files with 1,825 additions and 738 deletions.
373 changes: 317 additions & 56 deletions doc/python_api_reference_vDev.md

Large diffs are not rendered by default.

313 changes: 247 additions & 66 deletions doc/stim.pyi

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions file_lists/python_api_files
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ src/stim/simulators/frame_simulator.pybind.cc
src/stim/simulators/matched_error.pybind.cc
src/stim/simulators/measurements_to_detection_events.pybind.cc
src/stim/simulators/tableau_simulator.pybind.cc
src/stim/stabilizers/flow.pybind.cc
src/stim/stabilizers/pauli_string.pybind.cc
src/stim/stabilizers/pauli_string_iter.pybind.cc
src/stim/stabilizers/tableau.pybind.cc
Expand Down
2 changes: 1 addition & 1 deletion file_lists/test_files
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ src/stim/circuit/circuit.test.cc
src/stim/circuit/export_qasm.test.cc
src/stim/circuit/gate_decomposition.test.cc
src/stim/circuit/gate_target.test.cc
src/stim/circuit/stabilizer_flow.test.cc
src/stim/cmd/command_analyze_errors.test.cc
src/stim/cmd/command_convert.test.cc
src/stim/cmd/command_detect.test.cc
Expand Down Expand Up @@ -72,6 +71,7 @@ src/stim/simulators/transform_without_feedback.test.cc
src/stim/simulators/vector_simulator.test.cc
src/stim/stabilizers/conversions.test.cc
src/stim/stabilizers/flex_pauli_string.test.cc
src/stim/stabilizers/flow.test.cc
src/stim/stabilizers/pauli_string.test.cc
src/stim/stabilizers/pauli_string_iter.test.cc
src/stim/stabilizers/pauli_string_ref.test.cc
Expand Down
Loading

0 comments on commit 1f32ef6

Please sign in to comment.