Exchange square-root branch convention 2026-10-25
Let project onto and let project onto the symmetric sector. An isotropic exchange interaction, with a chosen common energy offset, gives the continuous family displayed above. A full exchange has and equals SWAP gate; the conventional half exchange has and equals . Reversing the sign of the exchange gives the same full exchange at but the inverse half exchange at . Thus even continuous time-independent Hamiltonian evolution and unchanged do not let the full-time truth table determine a unique half-time gate. A chosen generator or spectral branch is necessary. The half-exchange eigenvalues are the conventional principal scalar square-root choices for ; no analytic matrix-function branch across the negative real axis is being assumed.
Let be the SWAP gate. If the drift Hamiltonian operator and every allowed control Hamiltonian operator commute with , every reachable time-evolution operator also commutes with . Indeed, satisfies the same initial-value Schrödinger equation as and starts at , so uniqueness gives . Yet . An individual Pauli Z gate is consequently unavailable within that symmetric control model. Equal nuclear resonances, isotropic exchange interaction, and identical coupling to a common homogeneous radio frequency field provide an example. An added interaction that breaks this symmetry can remove the obstruction.
Heisenberg coupling matrix for two spins 2026-10-25
For two spin one-half systems, the dimensionless isotropic Heisenberg model coupling is , where are Pauli matrices. In the ordered computational basis ,where is the SWAP gate. This follows by acting on each basis state: the terms exchange the two opposite-spin states with coefficient two and annihilate the parallel-spin states. The symmetric three-dimensional sector has eigenvalue and the antisymmetric sector has eigenvalue . HenceThis identity explains how isotropic exchange interaction generates a SWAP gate at up to a global phase.
The gate set is not universal. The displayed two-qubit matrix is the SWAP gate:Both and the Hadamard gate act on one qubit. Thus every gate preserves a fully factored product state, and induction gives the same property for every quantum circuit built from them. This is the product-state obstruction to SWAP universality.
For a quantitative obstruction to even approximate universality, every two-qubit product state has squared overlap at most with a Bell state. Indeed, for normalized coefficient vectors ,by the Cauchy-Schwarz inequality. A controlled-NOT gate acting on would instead produce that Bell state, so these circuits cannot approximate all unitary transformations. The fact that supplies a T gate up to global phase does not supply an entangling gate.
Set . Define the quantum rotating frame byThe isotropic Heisenberg model coupling commutes with the total spin angular momentum, so . The transformed Hamiltonian operator is thereforeHere removal of the common Zeeman energy is exact; the exchange is resonant and cannot be discarded using the weak coupling condition for two NMR spins.
Put , , and . Exponentiating the parallel-spin entries and the middle matrix gives the time-evolution operatorFor example, at this equals the SWAP gate times , which checks both the exchange angle and the overall phase.
The printed network reads from left to right as , a Pauli Z gate on the upper spin only, , and another upper-spin Pauli Z gate. LetIts total time-evolution operator, with the first operation on the right, is . For this Heisenberg exchange echo,The three paired Pauli operators , , commute pairwise: for example both products and equal . Thus commutes with , andThe spin echo cancels the exchange terms and retains the Ising coupling. Equivalently, over the total free-evolution time it produces the effective Hamiltonian operator exactly for ideal instantaneous gates. It is generally not the identity. A physical rotation about is ; using two such pulses instead of the ideal gates changes only by a physically irrelevant global phase of minus one.
The implementation requires frequency-selective spin control. Under the usual common-radio frequency NMR assumptions, equal resonance frequencies give no way to apply a pulse to the first spin while leaving the second untouched. For equally coupled spins in a spatially uniform control field, the transverse control Hamiltonian operator has the formBoth this control and the drift Hamiltonian operator commute with the SWAP gate . Every reachable time-evolution operator consequently commutes with . But : the individual pulse required by the diagram fails this symmetry test. This is the exchange symmetry obstruction to individual spin control. Applying simultaneous gates gives , which commutes with and instead yields ; it does not refocus the exchange. A common change of the RF phase reference also supplies only a collective rotation.
This obstruction assumes the usual common-RF control with no extra handle distinguishing the spins. Equal resonance frequencies do not universally forbid individual addressing: a spatially selective field, unequal control couplings, or another symmetry-breaking interaction could alter controllability. Such resources are absent from the specified equivalent-spin NMR model.
Let and be normalized qubit states. By linearity, the SWAP gate givesThe output remains a product state. Single-qubit unitary operators also preserve product states, so an induction over any quantum circuit made from these operations shows that it cannot create quantum entanglement from a product state. Equivalently, moves every exchange through the local operations, leaving only local gates and a permutation of wires. This is the product-state obstruction to SWAP universality.
Consequently SWAP gates and arbitrary single-qubit gates do not form a universal quantum gate set. For example, they cannot map to the Bell state , whereas a Hadamard gate followed by a CNOT gate does so.
Use the ordered computational basis , with qubit 1 written first. The half-time gate requires a branch convention. Even stationary Hamiltonian evolution with does not uniquely specify : different accumulated eigenstate phases can agree at and differ at . In particular, both and below square to SWAP gate and leave unchanged. Adopt the conventional continuous isotropic exchange interaction branch, with a relative singlet phase increasing from to during the full pulse. This is the exchange square-root branch convention.
The symmetric and antisymmetric eigenstateshave SWAP gate eigenvalues . Let and be their antisymmetric and symmetric orthogonal projectors. The adopted exchange evolution isFor effective spin-one-half qubits, , an isotropic exchange interaction plus an energy offset that fixes the common phase. At half time choose on the symmetric sector and on the antisymmetric sector, the conventional principal square-root value of . Hence the square root of the SWAP gate isThus , , and , where and . The identities and verify , and the projector form proves unitarity. The endpoint truth table alone would allow other matrix square roots; the stated exchange branch supplies the additional physical assumption.
For the network, fix the Pauli Z gate, Hadamard gate and S gate conventionsThe letter distinguishes this local S gate from the two-qubit exchange gate . In particular ; replacing by changes the network. Subscripts specify the acted-on qubit: , and . Operators act rightmost first, so the printed quantum circuit is
First multiply the central two exchange pulses. Since , their off-diagonal terms cancel:This reduces the entire network to . Its action on all four computational basis states, retaining every relative quantum phase, isEquivalently,It flips the second qubit when the first is zero and contributes when the first is one. That conditional phase cannot be discarded as a global phase.
To obtain the standard CNOT gate controlled by qubit 1, append an gate to qubit 2 and to qubit 1. They commute, andFor control zero, undoes the original flip. For control one, it supplies the desired flip and cancels the phase because . This phase-corrected exchange network for a CNOT gate realizes the standard gate exactly with the declared conventions.
Finally, has equal Schmidt coefficients and is maximally entangled: a half exchange creates quantum entanglement although a full SWAP gate does not. More constructively, the network above produces a CNOT gate from two half exchanges and local gates. Since CNOT gates and arbitrary single-qubit unitary operators form a universal quantum gate set, the square root of the SWAP gate and arbitrary single-qubit gates are universal. The alternative inverse exchange branch remains entangling and universal, but its phases and local correction must be recomputed consistently.
Use the time-ordered network , , . On bits its successive values areThus the network exchanges the two computational-basis states. Since the gates are linear, this basis proof also establishes SWAP gate on arbitrary quantum states.
The Bell states and obeyThe antisymmetric spin singlet state alone has eigenvalue . Its standalone sign is a global phase; a Fredkin gate can make that sign observable relative to the control branch, as in part d.
Three controlled-X gates for SWAP, and two decompositions of the Fredkin gate
. Details. Control all three CNOTs of the SWAP gate decomposition by qubit 1. This gives, in temporal order,When the first qubit is 0, all three Toffoli gates do nothing. When it is 1, the three lower-wire CNOTs implement SWAP gate. The middle panel of the original diagram shows this controlled network.
Only one Toffoli gate is actually needed. An equivalent circuit isFor input , the first gate forms on wire 2. The second changes wire 3 to , and the final gate gives wire 2 the value . For this is ; for it is . The last panel displays the circuit.
The Hamming-weight obstruction to Fredkin-only Toffoli synthesis means that a network of Fredkin gates alone cannot implement a Toffoli gate on the same three wires: each Fredkin gate preserves computational-basis Hamming weight, whereas Toffoli gate maps to . The same obstruction holds if fixed ancillary bits must be returned unchanged. Conservative classical computation can use extra encoded wires and input-dependent garbage, but that is not an ancilla-free coherent three-qubit Toffoli gate operation. The resources and output encoding would need to be specified before making a different universality claim.
A universal quantum gate set can approximate any unitary operation on any finite register, to arbitrary requested accuracy, using a finite sequence of its gates on the register. Unobservable overall global phase is ignored. Approximation matters: a fixed finite alphabet has only countably many finite circuits, whereas there are uncountably many exact unitary matrices.
The Hadamard gate and T gate generate a dense set of single-qubit operations, but cannot themselves entangle different qubits. Adding the controlled-NOT gate gives a universal multi-qubit set. More generally, an available two-qubit gate must be genuinely entangling: it must take at least one product input to an entangled output. A product of local unitaries, or a SWAP gate composed with local unitaries, cannot provide this resource. Together with arbitrary single-qubit control, an entangling two-qubit gate on a connected interaction network supplies universal register control.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 25 4 Solution Created 2026-10-03 Updated 2026-10-14
On an -dimensional register, the quantum Fourier transform with positive-exponent convention isIt is the unitary version of the discrete Fourier transform on amplitudes. The inner product of columns is , equal to one when and zero otherwise by a finite geometric series, so the transformation is unitary.
For the qubit implementation take , write in most-significant-bit-first order, and put . Expanding separates the Fourier phase as a product. The resulting dyadic quantum Fourier transform circuit identity isIndeed the phase on output bit is , depending on the last input bits; multiplying the factors recovers and the normalization .
Implement the product in reverse wire order as follows. Process input wire , starting at . A Hadamard gate maps to . For each still-unprocessed wire , apply a controlled phase gate with control , target , and target phaseOn a computational-basis input this multiplies the target's one-component by , so the processed wire becomes exactly . Continue through all wires and reverse their order using SWAP gates. This equals the boxed transform on every basis vector and therefore on arbitrary superpositions by linearity; it does not require learning the input bits by measurement.
There are . A swap is three controlled-NOT gates, since the alternating control directions send successively to , then , and finally . Thus the exact transform uses one- and two-qubit gates from this phase-gate family, polynomial in the register size . This is a circuit-complexity statement, not a claim that all transformed amplitudes can be read out efficiently. If a fixed finite gate alphabet is required, the phase rotations must instead be synthesized to the desired accuracy; the exact count treats them as the available simple rotation gates.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 15C c Solution Created 2026-09-24 Updated 2026-09-29
The three controlled-NOT gates have directions , , and . On computational basis bits they act asBy linearity, the whole quantum circuit is the SWAP gate. Thereforeso and .
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 15C d i Solution Created 2026-09-24 Updated 2026-09-29
After the first Hadamard gate, the joint state isThe controlled SWAP gate then givesAfter the second Hadamard gate, it is
The SWAP gate and local unitary operators preserve product states. The displayed identity moves every exchange past a pair of local gates, reducing any such two-qubit quantum circuit to a local operation, optionally followed by SWAP gate. On more wires the same argument leaves a permutation of the tensor factors. By induction, a fully factored input remains factored. Since universal quantum computation includes operations that create quantum entanglement from a product state, these gates cannot form a universal quantum gate set.
Square root of the SWAP gate Created 2026-10-20 Updated 2026-10-25
For two spin-one-half qubits, the SWAP gate acts as one on the triplet sector and minus one on the singlet sector. The displayed unitary squares to SWAP. An isotropic exchange interaction with integrated angle implements it up to a common phase. There are other square-root branches; a pulse decomposition must use the declared branch consistently.
Three-CNOT decomposition of the SWAP gate Created 2026-09-24 Updated 2026-10-20
