Skip to content

Multi-Qubit code generation and lowering#84

Open
lschuetze wants to merge 19 commits intotud-ccc:mainfrom
lschuetze:rvsdg-to-scf
Open

Multi-Qubit code generation and lowering#84
lschuetze wants to merge 19 commits intotud-ccc:mainfrom
lschuetze:rvsdg-to-scf

Conversation

@lschuetze
Copy link
Member

@lschuetze lschuetze commented Jan 23, 2026

This PR implements the code generation of multi-qubit registers (i.e., qreg q[150] will result in quantum.alloc<150>). If there is a subsequent q[0]; accessing a single qubit in QASM the frontend will emit splits accordingly.

  • Emit multi-qubit Quantum SSA from frontend
  • Extend QILLR dialect with qubit register memories
  • Implement full lowering from Quantum to QILLR
  • Implement QASM code generation from QILLR

Code generation for QIR remains to be done in another PR.

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