Background
We have manual MLIR sketches using scf/arith for classical control and memref<?xi1> for classical registers. See the first two comments below.
Problem
We need runnable, reviewed examples that exercise classical-quantum interplay and passes.
Proposal:
- Commit
.mlir examples for QPE and IPE in MQTRef; include tests for parse/roundtrip and simple analysis checks; optional simulator hook to validate expected classical results.
Acceptance criteria:
- Examples and tests present; comments explain design choices.
This is one of the first steps in elaborating how to represent hybrid quantum-classical workflows.
Background
We have manual MLIR sketches using
scf/arithfor classical control andmemref<?xi1>for classical registers. See the first two comments below.Problem
We need runnable, reviewed examples that exercise classical-quantum interplay and passes.
Proposal:
.mlirexamples for QPE and IPE in MQTRef; include tests for parse/roundtrip and simple analysis checks; optional simulator hook to validate expected classical results.Acceptance criteria:
This is one of the first steps in elaborating how to represent hybrid quantum-classical workflows.