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

Allow sparse pauli syntax in stim.PauliString.__init__ #695

Merged
merged 4 commits into from
Feb 15, 2024
Merged

Conversation

Strilanc
Copy link
Collaborator

  • For example, stim.PauliString("X2*Y5") == stim.PauliString("__X__Y")
  • Also allow sparse pauli syntax in stim.has_flow
  • Add stim::simd_bits{_range_ref}.as_u64 convenience method
  • Refactor stim::PauliString::safe_accumulate_pauli_term into {right,left}_mul_pauli

- Add `stim::PauliString::safe_accumulate_pauli_term`
- Add `stim::PauliStringRef::has_no_pauli_terms`
- Add `stim::PauliStringRef::intersects`
- For example, `stim.PauliString("X2*Y5") == stim.PauliString("__X__Y")`
- Also allow sparse pauli syntax in `stim.has_flow`
- Add `stim::simd_bits{_range_ref}.as_u64` convenience method
- Refactor `stim::PauliString::safe_accumulate_pauli_term` into `{right,left}_mul_pauli`
# Conflicts:
#	src/stim/stabilizers/pauli_string.h
#	src/stim/stabilizers/pauli_string.inl
#	src/stim/stabilizers/pauli_string.test.cc
@Strilanc Strilanc changed the title Allow sparse pauli syntax in stim.PauliString.__init__ Allow sparse pauli syntax in stim.PauliString.__init__ Feb 15, 2024
@Strilanc Strilanc merged commit c2637f7 into main Feb 15, 2024
57 checks passed
@Strilanc Strilanc deleted the flows branch February 15, 2024 03:12
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