Matchgate circuits
A restricted family of two-qubit operations related to noninteracting fermionic dynamics and efficient classical simulation under specified conditions.
On this page
Definition, purpose and input assumptions
A matchgate acts separately on the even- and odd-parity two-qubit subspaces, with a determinant constraint linking the two blocks. Nearest-neighbor matchgate circuits with suitable inputs and measurements admit efficient classical simulation. The restrictions matter: changing connectivity or adding extra resources can change computational power.
Mathematical mechanism
In basis 00,01,10,11, a matchgate G(A,B) places A on the even subspace span{00,11} and B on the odd subspace span{01,10}, with det A=det B. Quadratic fermionic Hamiltonians generate related transformations. A general parity-preserving unitary without the determinant condition is not automatically a matchgate.
Fully solved reference example
Take U(theta)=exp[-i theta(XX+YY)/2]. On00 and 11, XX+YY cancels, so U acts as identity. On01 and 10, (XX+YY)/2 acts as X, so the odd block is[[cos(theta),-i sin(theta)],[-i sin(theta),cos(theta)]], whose determinant is 1. The even block is I with determinant 1, satisfying the constraint.
At theta=pi/4, input 01 becomes(|01>-i|10>)/sqrt(2), an entangled state. Efficient simulability of the restricted family therefore does not require every intermediate state to be unentangled.
Limitations and classical comparison
Ordinary SWAP is not interchangeable with fermionic SWAP in preserving these simulation conditions. Report input states, gate placement and measurement assumptions before applying a simulability theorem. Classical free-fermion methods are the natural baseline.
Scientific relationships
Matchgate circuits are represented through fermionic Gaussian dynamics and are an alternative structured simulation class to stabilizer circuits. They connect to Jordan-Wigner mapping and fermionic SWAP.
A pairing matchgate that does not conserve particle number
Consider U(θ)=exp[-iθ(XX-YY)/2]. The generator exchanges |00> and |11> and vanishes on |01>,|10>. Its even-parity block is cos θ I-i sin θ X, while its odd-parity block is identity. Both determinants equal one, satisfying the matchgate condition. The operation preserves fermion parity but not particle number.
At θ=π/4, input |00> becomes (|00>-i|11>)/√2. Each mode has mean occupation one half, and <n0n1>=1/2. A number-conserving occupation covariance alone is insufficient to characterize this state because it also has a pairing expectation. With the ordered Jordan-Wigner convention, <a0a1>=i/2, whereas <a0†a1>=0.
The ordinary one-particle density matrix is therefore I/2, the same matrix obtained from a maximally mixed two-mode state. But the latter has <n0n1>=1/4 rather than one half. The anomalous pairing correlation distinguishes the pure paired state from that mixture. A simulation method that retains only number-conserving one-particle data would lose information needed for this matchgate family.
A complete Majorana covariance example
Define Majoranas c0=X0, c1=Y0, c2=Z0X1, c3=Z0Y1, and covariance Γjk=(i/2)<[cj,ck]>. For distinct indices this is i<cjck>, giving a real antisymmetric matrix for physical states. In the state cos θ|00>-i sin θ|11>, let c=cos(2θ) and s=sin(2θ). The covariance rows are (0,-c,-s,0), (c,0,0,s), (s,0,0,-c), and (0,-s,c,0).
At θ=π/4, the nonzero upper-triangular entries are Γ02=-1 and Γ13=1. Direct multiplication gives Γ²=-I, the pure-Gaussian covariance condition in this convention. At θ=0, the entries Γ01=Γ23=-1 describe the vacuum. The occupation formula is <nj>=(1+Γ2j,2j+1)/2, consistent with zero vacuum occupation and one-half occupation after the pairing rotation.
Quadratic fermionic unitaries transform the Majorana operators through a real orthogonal matrix, and the covariance transforms accordingly. Storing a 2n-by-2n covariance matrix requires a polynomial number of entries rather than a 2^n-component statevector. This compact description remains valid only while the state, dynamics, and measurements stay within the relevant Gaussian framework; it is not a generic representation of arbitrary interacting fermionic states.
For the paired example, the occupation correlation follows from the Gaussian contraction rule: <n0n1>=<n0><n1>-|<a0†a1>|²+|<a0a1>|²=1/4+1/4=1/2. The pairing term is essential. The calculation provides a finite reference for signs and covariance conventions, which differ across software and physics texts.
SWAP, fermionic SWAP, and the determinant test
Ordinary SWAP has even block I and odd block X. Their determinants are one and minus one, so it is not a matchgate under this parity-block definition. Fermionic SWAP adds a minus sign to |11>; its even block is Z and odd block X, both with determinant minus one. It therefore satisfies the matchgate condition.
This distinction matters when routing fermionic modes. Replacing a required fermionic exchange by an ordinary qubit SWAP can change relative phases between occupation sectors and leave the intended Gaussian circuit family. Conversely, a qubit connectivity edge that is nonlocal in the chosen Jordan-Wigner ordering may correspond to a fermionic operation with a parity string. Physical wire adjacency, mode adjacency, and abstract gate placement must be distinguished.
The positive-i convention for iSWAP has odd block iX and even block I, both with determinant one. Different signs in the exchange phase can still satisfy the determinant constraint, but they produce different amplitudes. A simulator should check the actual matrix convention rather than infer a gate from its informal name.
Scope of classical simulability
The standard efficient-simulation setting uses an appropriate fermionic Gaussian input, quadratic dynamics or nearest-neighbor matchgates in the corresponding encoding, and supported measurements such as occupations. Adding arbitrary non-Gaussian states, interactions, or connectivity resources can alter the computational model. Entanglement alone is not the deciding criterion: the paired Bell state above is maximally entangled but has a compact exact Gaussian description.
A two-mode statevector calculation is trivial and supplies an independent check of the covariance result. For larger free-fermion problems, covariance and determinant or Pfaffian methods provide the natural classical baseline. A claim of quantum benefit should therefore identify the ingredient that escapes that efficient structure, together with its actual access and output requirements.
Sources
Verification scope
Recorded source check ·
Noninteracting fermionic representation and stated simulation restrictions inspected.
Formal scientific or official reference-semantics anchor. No SDK execution, hardware run, universal performance claim, or independent external peer review asserted. Original finite examples and definitions are independent explanations.