Skip to content

Design typed instruction programs for logical QEC and physical lowering - #582

Draft
qciaran wants to merge 8 commits into
devfrom
surface-logical-circuit-guppy-design
Draft

Design typed instruction programs for logical QEC and physical lowering#582
qciaran wants to merge 8 commits into
devfrom
surface-logical-circuit-guppy-design

Conversation

@qciaran

@qciaran qciaran commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • propose a Rust-owned InstrProgram with reusable InstrModule definitions and appendable typed InstrGraph bodies
  • generalize PECOS original QuantumCircuit late-bound instruction idea into stable typed definitions, calls, selectable implementations, hierarchy, and deterministic resolution
  • keep the generic layer deliberately smaller than a general compiler IR and generate PHIR as the MLIR-like compiler artifact
  • define QEC as typed semantic interfaces covering code blocks, logical transformations, logical/physical Pauli frames, conditional control, and protocol plans
  • describe thin Python wrappers with ergonomic APIs matching Rust
  • retain the Guppy to HUGR/QIS to QIS trace to normalized TickCircuit to DEM route while adding Rust-only PHIR emission
  • connect the proposal to issues [RFC] Layered abstractions and an HDL-style design model for QEC #508 through Document layered QEC abstractions and end-to-end workflows #516

Scope

This is a design-only draft. It adds no Rust or Python implementation code.

Testing

Documentation-only change. Markdown fence, whitespace, and Git diff checks pass.

@qciaran qciaran changed the title Design reusable logical QEC circuits with Guppy lowering Design typed instruction programs for logical QEC and PHIR/Guppy lowering Aug 25, 2026
@qciaran qciaran changed the title Design typed instruction programs for logical QEC and PHIR/Guppy lowering Design typed instruction programs for logical QEC and physical lowering Aug 25, 2026
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.

2 participants