Skip to content

feat: add stabilizer codes from signed Pauli generators - #317

Draft
jasonhan3 wants to merge 1 commit into
mainfrom
jasonh/add-code-def
Draft

jasonhan3 wants to merge 1 commit into
mainfrom
jasonh/add-code-def

Conversation

@jasonhan3

Copy link
Copy Markdown
Contributor

Summary

Add ppvm.Code for defining a qubit stabilizer code from signed Pauli generators. Users can supply a binary X/Z tableau, a list of Pauli strings, or CSS check matrices. The same API supports mixed-Pauli codes such as the five-qubit code.

  • Implement sign-aware stabilizer validation and membership in Rust. Accept consistent redundant checks and reject anticommuting generators or a group containing -I.
  • Derive logical X/Z representatives or validate a user-supplied basis. Use Stim to synthesize ideal logical basis-state preparation, encoders, and logical Clifford circuits.
  • Derive detector and logical-observable parities for terminal measurements from the physical measurement bases and record order, including sign offsets.

The synthesis API targets ideal Clifford operations. Fault-tolerant gadget design and repeated syndrome-extraction schedules are outside this change.

Verification

  • Rust workspace tests passed (1,547 passed, 2 ignored).
  • Python suite passed (392 passed, 1 skipped because the external Fig. 11 dataset was unavailable).
  • Covered Steane and non-CSS five-qubit examples, signed and redundant checks, and readout across two code blocks.

@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://QuEraComputing.github.io/ppvm/pr-preview/pr-317/

Built to branch gh-pages at 2026-11-25 02:09 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@jasonhan3
jasonhan3 requested a review from Krastanov November 25, 2026 20:08

This branch has not been deployed

No deployments
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