Documentation

CslibFrontier.Computability.Circuit.Frontier.Quantum.WireNetwork.ActiveSplit

Two-local quantum gate predicates and active-qubit decoupling #

Defines the two-qubit gate counter twoQubitCount, two-locality TwoLocal, and the Schmidt / bond-rank-two predicates HasBondRankTwo and AllBondRankTwo (proving cnot_hasBondRankTwo and controlled_hasBondRankTwo), together with the internal active-qubit decoupling decomposition for two-local quantum circuits.

Main definitions #

Main results #

Quantum gate predicates and bond-rank-two gates #

Number of two-qubit gates (g.arity = 2) in a quantum circuit C; zero-qubit and single-qubit U(2) gates contribute 0.

A quantum circuit is two-local when every gate acts on at most two qubits (g.arity ≤ 2), expressed via Quantum.Circuit.IsOver.

A two-qubit gate U : Quantum.Gate 2 has Schmidt / bond rank at most two across wire 0 and wire 1 when its unitary matrix factors as a sum over a single Boolean bond index b : Bool.

A quantum circuit C is two-local with every two-qubit gate having bond rank at most two (for instance arbitrary U(2) single-qubit gates together with CNOT, CZ, and controlled-V gates), expressed via Quantum.Circuit.IsOver.

Quantum.Gate.cnot has bond rank two across its control and target wires.

Every controlled single-qubit gate Quantum.Gate.controlled V has bond rank at most two.

Active-qubit decoupling on Quantum.Circuit N #