Built-in Passes#
Qrisp ships with the following circuit transformation passes. Each pass is a
CircuitPass that transforms a
QuantumCircuit and can be used standalone or as part of a
PassManager pipeline.
Pass |
Description |
|---|---|
Rearrange SWAP gates for better cancellation later |
|
Cancel adjacent gate–inverse-gate pairs via DAG analysis |
|
Remove gates controlled on |0⟩ states |
|
Fuse consecutive single-qubit gates into one |
|
Commute single-qubit ops past SWAP gates |
|
Convert two-qubit gates (CZ, CY, SWAP) to CX-based form |
|
Convert two-qubit gates (CX, CY, SWAP) to CZ-based form |
|
Convert single-qubit gates to native PRX (Phased-RX) gates |
|
Recursively dissolve synthesized gates into elementary gates |
|
Synthesize Toffoli gates using Gray-code decomposition |
|
Re-index qubits according to a user-supplied mapping |
|
Remove barrier instructions from the circuit |
|
Resolve SWAP gates by physically permuting qubits |
|
Reverse-parallelize the circuit for reuse in conjugate |
|
Print the circuit to stdout for debugging |