Skip to content

feat: add Ising gates (RXX, RYY, RZZ) across full stack#3

Merged
splch merged 1 commit intomainfrom
feat/ising-gates
Mar 12, 2026
Merged

feat: add Ising gates (RXX, RYY, RZZ) across full stack#3
splch merged 1 commit intomainfrom
feat/ising-gates

Conversation

@splch
Copy link
Copy Markdown
Owner

@splch splch commented Mar 12, 2026

Add three two-qubit Ising rotation gates using the exp(-i*theta/2 * P⊗P) convention, consistent with existing single-qubit rotations and OpenQASM 3.0.

  • Gate constructors with correct unitary matrices
  • Builder convenience methods + symbolic (SymRXX/SymRYY/SymRZZ) variants
  • QASM parser (rxx/ryy/rzz) and emitter round-trip support
  • CX-basis decomposition rules (RZZ: 2 CX, RXX/RYY: 2 CX + conjugation)
  • Optimized statevector kernel for RZZ (full-diagonal, ~4x vs generic)
  • RXX/RYY fall through to generic 4x4 kernel
  • Unitarity, inverse, and identity-at-zero tests

Add three two-qubit Ising rotation gates using the exp(-i*theta/2 * P⊗P)
convention, consistent with existing single-qubit rotations and OpenQASM 3.0.

- Gate constructors with correct unitary matrices
- Builder convenience methods + symbolic (SymRXX/SymRYY/SymRZZ) variants
- QASM parser (rxx/ryy/rzz) and emitter round-trip support
- CX-basis decomposition rules (RZZ: 2 CX, RXX/RYY: 2 CX + conjugation)
- Optimized statevector kernel for RZZ (full-diagonal, ~4x vs generic)
- RXX/RYY fall through to generic 4x4 kernel
- Unitarity, inverse, and identity-at-zero tests
@splch splch merged commit 91e437a into main Mar 12, 2026
11 of 12 checks passed
@splch splch deleted the feat/ising-gates branch March 12, 2026 16: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