Wire identity elimination
SquinWireIdentityElimination
Bases: RewriteRule
rewrite_Statement
rewrite_Statement(node: Statement) -> RewriteResult
Handle the case where an unwrap feeds a wire directly into a wrap, equivalent to nothing happening/identity operation
w = unwrap(qubit) wrap(qubit, w)
Source code in .venv/lib/python3.12/site-packages/bloqade/stim/rewrite/wire_identity_elimination.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|