Given circuits on qubits with unitaries :
- Exact equivalence: .
- Equivalence up to global phase: for some , equivalently is a multiple of the identity. This is the relevant notion for whole programs, but not for subcircuits that may later be controlled.
- Approximate equivalence: in operator norm, for a tolerance , as needed when rotations are synthesised approximately.
- Equivalence on a subspace or up to permutation: restrictions to an invariant subspace (for example with ancillas starting in ), or equality after a known relabelling of qubits (as left by routing).
Equivalence checking decides one of these relations from the circuit descriptions. Because is implemented by the circuit , every version reduces to an identity check. In its approximate form with a promise gap, deciding whether a circuit is far from every multiple of the identity (the yes case) or close to one is QMA-complete (Janzing, Wocjan and Beth); practical tools therefore use methods that work well on circuits produced by compilers, such as ZX-calculus rewriting, or decision diagrams combined with simulation of random inputs and with alternating gates of and so that intermediate representations stay close to the identity (Burgholzer and Wille).