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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Amplitude encoding

The representation of normalized data values as coefficients of a quantum state.

Edition released Coverage: Overview · Technical
On this page

Definition and significance

Amplitude encoding places a normalized vector into quantum amplitudes. It can represent N complex coefficients using log2(N) qubits, but the compact quantum representation does not provide direct classical access to all coefficients or eliminate their preparation cost.

Mechanism and mathematical treatment

For nonzero vector x, define |x>=sum_j x_j|j>/sqrt(sum_j |x_j|^2). A common overall phase and the original norm are not identifiable from measurements of |x> alone. Relative phases affect interference and must be retained when the data interpretation requires them.

Fully worked reference example

The vectors x=(3,4) and y=(6,8) produce the same state (3/5)|0>+(4/5)|1>. Thus the state alone does not distinguish their norms 5 and 10. The vector z=(3,-4) has the same computational probabilities but X expectation -24/25 instead of +24/25, so a phase-sensitive measurement distinguishes it.

Limitations and common misconceptions

Claims of exponential memory compression must state what information can subsequently be extracted and at what sample cost. An algorithm requiring every original component as a classical output cannot avoid output-size constraints.

Scientific relationships

Normalized classical data can be represented as amplitudes with preparation and readout costs.

Complex data with a vanishing real overlap

Take classical vectors x=(1,i,2,-1) and y=(2,1,-i,2). Their squared norms are seven and ten. The conjugate inner product is x dagger y=2-i-2i-2=-3i, so their normalized quantum overlap is -3i/sqrt(70), with squared magnitude 9/70. Their computational-basis probabilities alone do not reveal that overlap: those probabilities are (1,1,4,1)/7 and (4,1,1,4)/10, which contain no relative-phase information.

The squared Euclidean distance between the original vectors is ||x-y|| squared=7+10-2Re(x dagger y)=17. A SWAP overlap estimate supplies 9/70 but does not determine the real part needed for this distance. A controlled preparation interference circuit can estimate the real and imaginary overlap components when phase-consistent preparation unitaries are available. The two norms must also be supplied to recover the original unnormalized quantity.

The phase qualification matters even for classical input data. Replacing y by i y leaves the isolated encoded quantum state physically unchanged up to global phase, but changes x dagger y to three and the original squared Euclidean distance to eleven. Independently provided copies of the encoded states cannot distinguish those two classical data descriptions. A coherent loading circuit with a declared phase reference, or classical metadata supplying that phase convention, provides the extra structure needed by a phase-sensitive vector task.

Explicit preparation structure for the first vector

The first half of x has squared norm two and the second half has squared norm five. A root rotation can therefore prepare q0 with amplitudes sqrt(2/7) and sqrt(5/7). Conditional on q0=0, the q1 state is (|0>+i|1>)/sqrt(2). Conditional on q0=1, it is (2|0>-|1>)/sqrt(5). Combining those branches reproduces x/sqrt(7) exactly in the stated tensor order.

The branch magnitudes can be prepared using conditional Y rotations, followed by conditional phase operations to supply i and the negative sign. The root angle is 2 arccos(sqrt(2/7)); the second branch's magnitude angle is 2 arctan(1/2). Writing these angles is a mathematical specification. A discrete fault-tolerant gate library must approximate them, and a physical control system must realize them with finite accuracy.

A general unstructured vector requires an entire hierarchy of such conditional norms and phases. The input's compact final register does not imply that the hierarchy has a compact classical description. Sparse, factorizable, or algorithmically generated vectors may admit cheaper constructions, but those are additional input promises. Padding a vector with zero entries to a power-of-two dimension preserves its original inner products when every compared vector uses the same padding convention.

Error propagation to a classical answer

Suppose an overlap quadrature is estimated with absolute error at most delta and the vector norms are exact. For this pair, the corresponding error in the unnormalized inner-product component is at most sqrt(70) delta. The error in the squared Euclidean distance inferred from its real part is at most 2sqrt(70) delta. Uncertainty in either norm adds a further contribution and should not be folded silently into a shot-noise error bar.

Normalization can also amplify preparation errors for vectors with small norm. For nonzero vectors x and x+e, a useful conservative bound on their normalized-vector difference is proportional to 2||e|| divided by the smaller of their norms. Thus a fixed absolute loading error can be severe when the original data vector is nearly zero. A truly zero vector has no normalized amplitude encoding and needs a separately specified classical case.

Reading every amplitude back as a classical array is a different output task from estimating one overlap or observable. The former has a growing output size and statistical reconstruction burden. A quantum linear-algebra proposal should identify the small number of classical quantities actually required by its application. If those quantities can be computed efficiently from the original classical vectors by direct arithmetic or a matched sampling data structure, that is the relevant comparison.

Sources

  • Aram W. Harrow; Avinatan Hassidim; Seth Lloyd · · Research paper · Publication status unspecified · arXiv · DOI 10.1103/PhysRevLett.103.150502
    Verification scope

    Selected source text checked ·

    Primary formal source anchor; original worked examples independently derived, not reported experiments.

  • 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.