Back to Learn
Intermediate
IntermediateQuantum Circuit Compilation and Optimization
12 min read 10 views 0
Quantum circuits written in frameworks like Qiskit use abstract gates that must be translated to the native gate set of the target hardware.
Gate Decomposition
Arbitrary single-qubit rotations can be decomposed into Z-Y-Z Euler rotations. Two-qubit gates like SWAP are decomposed into three CNOT gates.
Transpilation
Transpilation is the process of optimizing a circuit for a specific backend. This includes gate decomposition, routing (mapping logical qubits to physical qubits), and optimization passes.
Optimization Strategies
- ▸Gate cancellation: removing redundant gates
- ▸Commutation: reordering gates to reduce depth
- ▸Template matching: replacing subcircuits with more efficient equivalents
compilation
transpilation
optimization
qiskit