Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Arbitrary quantum state preparation

The synthesis of a circuit that maps a known reference state to a specified normalized target state.

Edition released Coverage: Overview · Technical
On this page

Definition, purpose and input assumptions

State preparation constructs A with A|0...0>=|psi>. The target may be given by an explicit amplitude list, a structured mathematical description or an oracle. These input models have different costs. A generic n-qubit pure state contains exponentially many independent parameters, so no general polynomial-size preparation can encode every such state from a short classical description.

Mathematical mechanism

For a real nonnegative two-qubit state with amplitudes a00,a01,a10,a11, first prepare the first-qubit branch weights r0=sqrt(a00^2+a01^2) and r1=sqrt(a10^2+a11^2). Then rotate the second qubit conditionally to realize the normalized amplitudes within each branch. Complex phases require additional phase operations. Branches of zero weight need an arbitrary consistent extension, since their internal angle is physically unused.

Fully solved reference example

Prepare |psi>=sqrt(1/2)|00>+(1/2)|10>+(1/2)|11>. The branch weights are r0=r1=1/sqrt(2), so H on the first qubit is sufficient. In branch 0, leave the second qubit in |0>. In branch 1, apply R_Y(pi/2), producing |+>. The final amplitudes are exactly [1/sqrt(2),0,1/2,1/2], whose squared magnitudes sum to one.

This construction uses a known target description. Measuring its first qubit gives equal branch probabilities; measuring its second gives 3/4 and 1/4. The target is not a product state because the conditional second-qubit states differ.

Limitations and classical comparison

State preparation does not clone an unknown state. If an algorithm assumes the inverse A dagger, the construction must retain a reversible unitary description rather than an irreversible reset-and-measure process. Classical loading time can dominate claimed speedups for unstructured data.

Scientific relationships

State preparation is used in amplitude encoding, amplitude amplification and quantum linear-system algorithms. Uniformly controlled rotations supply a general synthesis method; data-loading assumptions determine whether preparation is efficient.

Preparing a complex three-qubit state from a weight tree

Let the target be |ψ>=(|000>+2|001>-|100>+i|101>+2|110>-i|111>)/√12. The two omitted amplitudes, for 010 and 011, are zero. The squared integer magnitudes sum to twelve. First prepare the nonnegative magnitudes, then apply a diagonal operation that supplies the required relative phases. This separates the binary weight calculation from the phase calculation without treating either as free input access.

At the root, the q0=0 branch has weight 5/12 and q0=1 has weight 7/12. Starting from zero, apply R_Y(2 atan√(7/5)) to q0. Within the first branch, q1 must remain zero because all its weight lies in 000 and 001. Within the q0=1 branch, the q1=0 and q1=1 weights are 2/7 and 5/7, so its conditional angle is 2 atan√(5/2). These choices assign the correct two-qubit prefix probabilities.

For q2, the prefix 00 needs squared probabilities 1/5 and 4/5, giving angle 2 atan 2. Prefix 01 has zero total weight, so its target rotation may consistently be chosen as identity. Prefix 10 needs equal probabilities and uses angle π/2. Prefix 11 needs probabilities 4/5 and 1/5 and uses angle 2 atan(1/2). Multiplying the branch factors gives the amplitude vector (1,2,0,0,1,1,2,1)/√12. Every factor is derived from a conditional probability rather than guessed from the final coefficients.

Supplying all relative phases with a compact diagonal circuit

Write the three bits as a,b,c. The diagonal phase function f(a,b,c)=πa-πab-(π/2)ac produces phases 1,1,1,1,-1,i,1,-i in computational-basis order. Thus P(π) on q0, a controlled phase of -π on q0 and q1, and a controlled phase of -π/2 on q0 and q2 convert the nonnegative vector into the target. At 100 the exponent is π, at 101 it is π/2, at 110 it is zero, and at 111 it is -π/2. The zero-amplitude branch places no constraint on its own phase, but the chosen diagonal unitary remains well defined there.

The final probabilities are 1/12,4/12,0,0,1/12,1/12,4/12,1/12. Population checks confirm the weight tree but cannot confirm the signs and imaginary phases. For example, replacing i|101> by -i|101> leaves every computational-basis probability unchanged. An inverse-preparation overlap test, or a suitable set of interference observables, is needed to check such a relative-phase error. The complete ideal matrix construction can also be verified directly on the known reference input.

A second construction using a Householder reflection

Because <000|ψ>=1/√12 is real, define v=(|000>-|ψ>)/√(2-2/√12). The denominator is the norm of the numerator. The Householder operator R=I-2|v><v| is Hermitian and unitary: the rank-one projector squares to itself, so R²=I. Multiplying R by |000> gives |ψ>. Explicitly, <v|000>=(1-1/√12)/√(2-2/√12), and the factor multiplying |000>-|ψ> is exactly one.

This produces a compact algebraic description of a valid preparation unitary. It does not provide a constant-cost physical implementation. The eight-by-eight reflection generally requires decomposition into allowed local gates, and a larger arbitrary target requires a correspondingly larger description. Calling R one matrix operation in a classical formula would hide that synthesis cost. For this small example, the weight tree exposes useful zeros and phase structure that a dense-matrix representation does not immediately exploit.

The two constructions also choose different actions on input states orthogonal to |000>. Both satisfy the same state-preparation promise, but they are not interchangeable as arbitrary unitaries inside another algorithm unless only that promised input matters. Their inverses correctly unprepare their own target, yet their behavior on a perturbed or different state can differ. This freedom is central to reducing a preparation circuit while maintaining the intended input contract.

Precision, zero branches, and resource accounting

A generic N-component pure state has 2N-2 real degrees of freedom after normalization and global phase are removed. A complete binary weight tree has N-1 internal nodes before zero-weight branches are pruned. These counts concern a classical amplitude description; they do not imply that every node corresponds to a unit-cost hardware gate. Conditional rotations must be decomposed, and finite-precision angle calculation and synthesis add further cost.

Near a zero-weight branch, normalized conditional probabilities can be sensitive because they divide by a small branch weight. The resulting state may still be insensitive if that entire branch has tiny total norm. If a branch of squared weight w is replaced by an arbitrary normalized internal state, the vector difference contributed by it is at most 2√w. This gives a conservative state-level truncation criterion that is more meaningful than demanding accurate angles inside an almost unoccupied branch. The omitted amplitude and any renormalization should still be included in the total error budget.

Sources

  • Mikko Mottonen; Juha J. Vartiainen; Ville Bergholm; Martti M. Salomaa · · Research paper · Preprint recorded · arXiv
    Verification scope

    Recorded source check ·

    The version date comes from the arXiv submission record.

    Theoretical or mathematical source anchor; original definitions and worked instances are independent. No experimental or end-to-end performance claim inferred.

  • Vittorio Giovannetti; Seth Lloyd; Lorenzo Maccone · · Research paper · Publication status unspecified · arXiv · DOI 10.1103/PhysRevLett.100.160501
    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.