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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Linear combination of unitaries

An algorithmic method embedding a weighted sum of unitary operations into a larger unitary with ancillas.

Also called LCU

Edition released Coverage: Overview · Technical
On this page

Definition and significance

A matrix that is not unitary cannot directly be applied as a deterministic closed-system gate. The linear-combination-of-unitaries method represents A as a weighted sum of unitaries and embeds that sum into part of a larger unitary. Ancilla preparation and conditional selection supply the embedding; success probability and amplification determine the usable cost.

This construction supports Hamiltonian simulation, block encodings and other matrix algorithms. Its effectiveness depends strongly on the coefficient normalization and the expense of preparing and selecting the terms.

Mechanism and mathematical treatment

Assume A=sum_j alpha_j U_j with alpha_j>=0 and alpha=sum_j alpha_j. Prepare an ancilla |chi>=sum_j sqrt(alpha_j/alpha)|j>. Define SELECT=sum_j |j><j| tensor U_j. If PREP|0>=|chi>, then U=(PREP dagger tensor I)SELECT(PREP tensor I) has its all-zero ancilla block equal to A/alpha.

For an input |psi>, postselecting that ancilla yields the unnormalized system state A|psi>/alpha. Its success probability is ||A|psi>||^2/alpha^2. Complex or negative coefficients can be absorbed into phases of U_j or handled by a correspondingly explicit construction.

Fully worked reference example

Take A=I+Z, with alpha=2 and equal-weight ancilla |+>. The zero-ancilla block is (I+Z)/2=|0><0|. For system |+>, successful postselection produces |0>/sqrt(2), so success probability is 1/2 and the normalized output is |0>. For input |1>, the success probability is zero because A|1>=0.

This example demonstrates why the block is not an unconditional deterministic projection. The complete ancilla-system operation remains unitary; the apparently nonunitary action is one selected branch. Ignoring the rejected branch would conceal the probability cost.

Limitations and common misconceptions

A short algebraic decomposition is not necessarily an efficient algorithm. PREP may require costly data loading and SELECT may require expensive controlled operations. The coefficient sum can be much larger than the operator norm, reducing success and worsening complexity.

Scientific relationships

Ancilla preparation and selection embed a normalized weighted unitary sum.

A complex-weighted sum with every branch normalized

Consider A=2I-X+iZ. Absorb the signs and complex phases into the selected unitaries U0=I, U1=-X and U2=iZ, with nonnegative coefficients two, one and one. The normalization is alpha=4. Prepare an index register in sqrt(1/2)|0>+1/2|1>+1/2|2>, apply SELECT, and undo the preparation. The zero-index block is A/4.

For system input |0>, A|0>=(2+i)|0>-|1>. Its squared norm is six, so successful zero-index postselection has probability 6/16=3/8. The normalized system output is [(2+i)|0>-|1>]/sqrt(6). Its Bloch coordinates are <X>=-2/3, <Y>=1/3 and <Z>=2/3, whose squared sum is one. These values verify normalization and retain the phase information that a computational histogram would miss.

The index preparation uses three labels, which can be embedded in two qubits with the fourth amplitude zero. SELECT must still specify a unitary action for the unused label, such as identity. The preparation inverse is defined on the complete index space, not only on the one state that happens to be prepared. A valid algorithm needs these complete unitary operations even though the success-block calculation involves only one column and one row.

Input dependence of the success probability

Compute A dagger A. Writing A=(2I-X)+iZ gives A dagger A=6I-4X-2Y. Therefore for an arbitrary system density matrix rho, the success probability is [6-4<X>-2<Y>]/16. On |0> this gives 3/8, as above. On |+>, it gives 1/8. On |->, it gives 5/8. The same LCU circuit can consequently have very different postselection costs on different inputs.

The singular-value squares of A are 6 plus or minus sqrt(20). Their square roots are below four, consistent with alpha=4 being a valid normalization. The smallest possible success probability over pure inputs is (6-sqrt(20))/16, and the largest is (6+sqrt(20))/16. This spectral calculation provides a uniform range that a single input example cannot establish.

If the goal is to apply A to an unknown state, amplification must respect its nonunitary, input-dependent action. Ordinary state-specific amplitude amplification can use a known preparation of the complete input, but a general operator transformation needs an appropriate construction and assumptions. Treating every successful block as a unitary multiplied by one constant success amplitude would be wrong for this A.

Cancellation can make a decomposition unnecessarily costly

Consider a second representation A=I+(-I)+epsilon X, with epsilon positive. The first two terms cancel exactly, leaving epsilon X. An LCU construction that ignores the cancellation has alpha=2+epsilon and success probability epsilon^2/(2+epsilon)^2 on every normalized input. A simplified representation with only epsilon X has alpha=epsilon and succeeds with probability one, applying X up to the known scalar represented by the normalization.

For epsilon=1/10, the unsimplified success probability is 1/441, whereas the simplified one is one. The matrix is identical in both descriptions. This shows that coefficient one-norm is a property of the chosen decomposition, not an invariant equal to the operator norm. Finding a better decomposition may require useful classical analysis, and it can matter more than optimizing a few gates inside SELECT.

The phases in -X and iZ are operationally relevant inside SELECT because they occur on different coherent index branches. Replacing -X by X as if the sign were globally irrelevant changes A. Likewise, dropping i from iZ changes the intended matrix. A unitary's scalar phase is harmless only when it multiplies the entire overall state uniformly, which is not the case for separately selected terms.

A complete reference execution and resource ledger

The reference procedure is: prepare the index state; apply each selected unitary coherently under its label; undo index preparation; measure whether the index is zero; retain the system only on success. The unconditional procedure includes the other index outcomes and is a trace-preserving quantum channel when those outcomes are ignored. The conditional map alone is not trace preserving, and its success probability must accompany any normalized output.

One block-encoding use contains one PREP, one SELECT and one PREP dagger. If PREP is built from data-dependent amplitudes, its loading cost remains present in both directions. SELECT may be a sequence of controlled arithmetic operations rather than a short gate list. Repeating or amplifying the block multiplies these costs. A classical two-by-two matrix-vector product gives the complete answer for the present examples and is the relevant validation method.

Sources