Parameterized quantum circuit ansatz
A chosen family of quantum states or operations indexed by adjustable parameters.
Also called variational ansatz
On this page
Definition and significance
An ansatz restricts optimization to a manageable family. Its structure determines which states can be reached, how expensive circuits are and whether useful gradients are accessible. More parameters can improve expressivity while also increasing cost or training difficulty.
Mechanism and mathematical treatment
For |psi(theta)>=U(theta)|0>, the accessible set depends on the gates, connectivity and parameter sharing. Symmetry-preserving ansatzes restrict motion to a relevant sector; hardware-oriented ansatzes prioritize available interactions. Neither design goal alone guarantees a good solution.
Fully worked reference example
A single-qubit R_Y(theta)|0> has real amplitudes cos(theta/2),sin(theta/2) and covers one great circle. It cannot prepare (|0>+i|1>)/sqrt(2). Adding R_Z(phi) allows the relative phase to vary and covers all pure single-qubit states up to global phase. The additional parameter expands the state family in a precise way.
Limitations and common misconceptions
An ansatz that contains the target state may still be difficult to optimize. Conversely, a restricted family can be useful when it captures the required observable accurately. State expressivity, trainability and task accuracy should be reported separately.
Scientific relationships
The chosen state family defines the variational search space.
Alternating cost and mixer layers form a specific parameterized family.
Certain families and objectives have gradients that become difficult to resolve.
A family that covers one excitation exactly
Start three qubits in |100>. Define an exchange operation on a pair by E_jk(theta)=exp[-i theta(X_jX_k+Y_jY_k)/2]. It mixes |10> and |01> within that pair while leaving |00> and |11> unchanged. Applying E_01(theta) followed by E_12(phi) gives cos(theta)|100>-i sin(theta)cos(phi)|010>-sin(theta)sin(phi)|001>. Every term contains exactly one excitation.
Choose theta=arccos(1/sqrt(3)) and phi=pi/4. The state becomes (|100>-i|010>-|001>)/sqrt(3). Applying P(pi/2) on q1 and P(pi) on q2 changes the relative phases to produce the W state (|100>+|010>+|001>)/sqrt(3). This derivation specifies the gate order and phases, rather than inferring a preparation from equal probabilities alone.
More generally, theta and phi in the interval from zero to pi/2 set the three nonnegative amplitude magnitudes cos(theta), sin(theta)cos(phi), and sin(theta)sin(phi). Two independent relative phase gates supply their phases. These four real parameters cover every pure state in the three-dimensional one-excitation subspace up to a global phase. They do not cover all three-qubit states, whose general pure-state family has fourteen real degrees of freedom after normalization and global phase are removed.
Why the symmetry is exact in the ideal circuit
Let the total excitation operator be N=(3I-Z0-Z1-Z2)/2. Each exchange generator commutes with N, as do the local diagonal phase gates. Therefore the complete family preserves the N=1 eigenspace exactly. This algebraic statement can be checked without sampling many random parameter values. Testing a finite collection of preparations is weaker than establishing the generator commutators.
A target outside the sector cannot be reached by adding more layers of the same symmetry-preserving gates. In particular, the GHZ state has support only in the zero- and three-excitation sectors and is orthogonal to every state in this family. For |+++>, the squared norm of its projection into the one-excitation sector is 3/8, so no state in the family can have fidelity above 3/8 with that target. The normalized projection is the W state, which attains the bound.
These are expressivity limits relative to named targets, not evidence that the family is broadly inadequate. When a Hamiltonian preserves excitation number and the scientifically relevant sector is known, restricting the search can reduce parameters and avoid irrelevant states. Choosing the wrong sector instead produces the best state under an incorrect physical constraint. A sector minimum remains an upper bound on the full ground energy, but it may sit far above the desired global minimum.
Parameter redundancy and optimization geometry
Consider the diagonal observable with energies -3, -2, and -1 on |100>, |010>, and |001>. Its expectation within the family is -3 cos squared (theta)-2 sin squared (theta)cos squared (phi)-sin squared (theta)sin squared (phi). It is minimized at theta=0, giving |100> and energy -3. At that point phi has no effect at all, because the other two amplitudes vanish. Their phase parameters are also unobservable there.
The resulting flat parameter directions are local coordinate redundancies. They are different from a barren-plateau statement about gradient variance over an ensemble of large circuits. A numerical optimizer can encounter both phenomena, but they require different diagnoses. Removing unused parameters, changing coordinates, or recognizing a reached boundary can address a redundancy without changing the represented physical state family.
For a general superposition inside the sector, derivatives of the four parameters can span the four real tangent directions. At boundary points where an amplitude vanishes, phase coordinates become singular, much as a longitude is undefined at a pole. An optimizer's parameter-space Hessian therefore should not be interpreted as a coordinate-independent physical landscape without considering these degeneracies.
Circuit and classical comparison costs
The displayed preparation uses two exchange interactions and two relative-phase adjustments. If exchange is not native, each interaction must be decomposed into the supported gate set; the commuting XX and YY terms allow a direct factorization, but connectivity may add routing. Repeating layers increases opportunities to alter the state without enlarging the already covered one-excitation state family in this three-qubit example.
A classical simulation needs only three complex amplitudes when all operations and observables stay in the same sector. Compare against that reduced representation before claiming a simulation advantage. The transition graph and W-state phases are exact in this model. At θ = 0 the φ direction is flat.
Sources
Verification scope
Selected source text checked ·
Primary formal source anchor; original worked examples independently derived, not reported experiments.
Verification scope
Selected source text checked ·
Formal or reference-semantic source anchor only; no SDK execution, hardware run, or empirical advantage is asserted. Original worked examples are independent mathematical constructions.