Skip to content

Theory

QuPRS verifies supported unitary quantum-circuit comparisons using Boolean Path-sum representations, algebraic reduction rules, and optional complex weighted model counting.

Mathematical foundations

For two unitary operators U and V on n qubits, the projective metric used by the default WMC classifier is

\[ D_{\mathrm{proj}}(U,V) =\sqrt{1-\frac{|\operatorname{Tr}(U^\dagger V)|^2}{4^n}}. \]

An equality claim may be structural or approximate, depending on the selected method and tolerances. This distance is global-phase invariant, but a positive finite-precision solver verdict is not, by itself, a proof of source-exact equivalence.

The complete publicly documented equivalence semantics distinguish exact equality, global-phase equivalence, and finite numerical acceptance. See executable examples for small controls.