Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stim.Flow and stim.Circuit.has_all_flows #700

Merged
merged 4 commits into from
Feb 17, 2024
Merged

Add stim.Flow and stim.Circuit.has_all_flows #700

merged 4 commits into from
Feb 17, 2024

Conversation

Strilanc
Copy link
Collaborator

  • 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

- 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
# Conflicts:
#	src/stim/py/stim.pybind.cc
@Strilanc Strilanc merged commit 1f32ef6 into main Feb 17, 2024
57 checks passed
@Strilanc Strilanc deleted the flowitup branch February 17, 2024 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant