Skip to content

rewrite from qubit dialect to wire dialect #25

@Roger-luo

Description

@Roger-luo

implement a rewrite rule that uses analysis to track the dependencies of qubits and rewrite that into wires. This is similar to CUDA Q's quake pass. How this can be implemented is by maintaining a virtual table inside the rewrite rule and update the table with new allocated wire and replace the previous wire, e.g

# SSA corresponding to the QReg => SSA corresponding to the current Wire
qreg2wire: dict[ir.SSAValue, ir.SSAValue]

┆Issue is synchronized with this Jira Task by Unito

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpriority: highhigh priority, blocking milestones, time sensitivesquinsquin related issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions