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 remaining single qubit Clifford gates #895

Merged
merged 10 commits into from
Mar 4, 2025
Merged

Add remaining single qubit Clifford gates #895

merged 10 commits into from
Mar 4, 2025

Conversation

Strilanc
Copy link
Collaborator

@Strilanc Strilanc commented Mar 4, 2025

Add the last 9 (out of 24) single qubit Clifford gates that weren't defined by stim until now:

  • Add C_NXYZ gate
  • Add C_XNYZ gate
  • Add C_XYNZ gate
  • Add C_NZYX gate
  • Add C_ZNYX gate
  • Add C_ZYNX gate
  • Add H_NXY gate
  • Add H_NXZ gate
  • Add H_NYZ gate

Also add some useful placeholder gates for the tag-obsessed to use:

  • Add I_ERROR gate
  • Add II_ERROR gate
  • Add II gate

And finally some compatibility changes:

  • Modify crumble to replace feedback gates with "ERR" gates, instead of silently removing them
  • Generalize crumble's 'k+#' automark functionality to work with multi-qubit measurements
  • Modify stimcirq to turn all cirq.SingleQubitCliffordGate instances into a single gate, instead of ever using multiple gates

Fixes #885

Fixes #855

Strilanc added 6 commits March 3, 2025 18:30
- Add `C_NXYZ`
- Add `C_XNYZ`
- Add `C_XYNZ`
- Add `C_NZYX`
- Add `C_ZNYX`
- Add `C_ZYNX`
- Add `H_NXZ`
- Add `H_NYZ`
- Add `II` gate
- Add `II_ERROR` gate
- Add new gate support to crumble
- Make crumble replace feedback gates with visible errors
- Extend 'k+#' automark to work with multi-qubit measurement
@Strilanc Strilanc requested a review from AlexBourassa March 4, 2025 06:37
@Strilanc
Copy link
Collaborator Author

Strilanc commented Mar 4, 2025

@m-mcewen

@Strilanc Strilanc merged commit 0127ec0 into main Mar 4, 2025
57 checks passed
@Strilanc Strilanc deleted the newgates branch March 4, 2025 22:20
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.

Add tag support to crumble add more interesting identity operations
1 participant