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

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Quantum rejection sampling

A coherent reweighting method that prepares target amplitudes from an available source superposition using controlled acceptance.

Edition released Coverage: Overview · Technical
On this page

Definition, purpose and input assumptions

Classical rejection sampling accepts or rejects sampled values to change their distribution. A quantum analogue reweights amplitudes while preserving coherence among accepted components. It requires a suitable source-state preparation and controlled acceptance factors, with success probability and any amplification explicitly accounted for.

Mathematical mechanism

Suppose the source is sum_j a_j|j> and desired unnormalized amplitudes are b_j. An ancilla rotation can attach accepted amplitude c b_j/a_j when its magnitude is at most one. The accepted system branch is c sum_j b_j|j>. Components with a_j=0 cannot supply a nonzero target amplitude through this filtering step alone.

Fully solved reference example

Start from |+>=(|0>+|1>)/sqrt(2) and target normalized state(2|0>+|1>)/sqrt(5). Choose accepted amplitudes on the ancilla r0=1 and r1=1/2. The accepted branch is(|0>+(1/2)|1>)/sqrt(2), with success probability 5/8. Normalization yields the desired target.

The rejected branch contains only the|1> component with norm squared3/8. Discarding that branch is an operational cost, not a violation of normalization. If repeated independent trials are used, the expected number of source preparations for one success is 8/5.

Limitations and classical comparison

Small acceptance probability can erase an advantage. Coherent amplitude amplification can improve success scaling when source inverses and reflections are available, but their cost remains. The quantum task can involve unknown attached states, so it is richer than merely sampling a known classical distribution.

Scientific relationships

Quantum rejection sampling generalizes filtering of amplitudes and is used in quantum linear algebra. It depends on state preparation and connects to amplitude amplification for boosting success.

A four-component complex filter

Take source probabilities p = (2/5, 3/10, 1/5, 1/10), with source phases (1, i, -1, 1). The source amplitudes are sqrt(p_j) times those phases. The desired target has probabilities q = (1/10, 2/5, 2/5, 1/10), with phases (1, -1, i, 1). Both vectors are normalized. The accepted branch must change phases as well as magnitudes; sampling only the desired probabilities would not prepare the specified coherent state.

Choose a diagonal accepted operator with entries r_j = c b_j/a_j, where a_j and b_j are the source and target amplitudes. The largest allowed c squared is min_j p_j/q_j = 1/2. The four accepted entries are therefore 1/(2 sqrt(2)), i sqrt(2/3), -i, and 1/sqrt(2). Every magnitude is at most one, so each can be embedded in a unitary acting on a flag and the associated system basis state. The third entry has magnitude one and changes its phase by minus i.

Applying this operator gives accepted vector c|target>, hence success probability one half. The normalized accepted state is exactly the requested complex target. A complementary diagonal rejected operator with nonnegative entries sqrt(1 - |r_j| squared) completes a valid instrument. Its unnormalized component probabilities are (7/20, 1/10, 0, 1/20), summing to one half. Conditional rejection therefore has probabilities (7/10, 1/5, 0, 1/10), retaining the source phases under this chosen completion.

Why the limiting ratio controls success

The jth accepted amplitude has squared magnitude c squared q_j. It cannot exceed the available source probability p_j under a diagonal contraction. Consequently c squared <= p_j/q_j wherever q_j is nonzero. The third component in this example limits success because the source supplies only one fifth while the target requests two fifths. Other components cannot donate amplitude to it through this diagonal filter. A more general state transformation could mix components, but that is a different operation with different access requirements.

The filter entries are amplitude ratios, not probability ratios. Using q_j/p_j directly as a rotation amplitude would generally produce the wrong target distribution and may violate the magnitude-one bound. Complex ratios also require a controlled phase, not only a real ancilla rotation. An implementation must specify how these ratios are computed or loaded coherently and at what numerical precision; their concise mathematical expression does not grant free access to a large table.

Support mismatch and an optimal attainable approximation

For a separate source with probabilities (1/2, 3/10, 1/5, 0), the original target cannot be reached by diagonal filtering because its final component has probability one tenth outside the source support. Projecting the target onto the first three coordinates and normalizing gives the highest-fidelity target state confined to that support. Its squared overlap with the desired full target is nine tenths, by the norm of that projection.

The projected target probabilities are (1/9, 4/9, 4/9, 0). The maximum diagonal-filter success probability is then min(9/2, 27/40, 9/20) = 9/20. Thus one can report a complete pair: fidelity nine tenths to the original target and success probability nine twentieths for the projected target. Calling the approximate state exact would hide the missing support; reporting only fidelity would hide the acquisition cost. If the target has zero amplitude in a source-zero coordinate, that coordinate imposes no ratio constraint and can simply be omitted.

Repetition and coherent amplification are distinct choices

For the original filter, independent rejection sampling needs two source preparations on average per accepted output. Ordinary Grover-style amplitude amplification does not improve every known success probability at every integer depth. Here a = 1/2 means theta = pi/4, and one standard amplification iterate gives sin squared (3pi/4) = 1/2 again. The success probability remains one half. This is a useful boundary case against the claim that any amplification step necessarily helps.

A fixed-point phase construction or a phase-matched exact procedure uses a different sequence and must be analyzed with its own preparation and reflection costs. Coherent amplification requires access to the inverse of the entire source-and-filter unitary, not only the ability to draw accepted samples. An unknown source supplied as a physical specimen may not provide that access. The primitive assumed by a theorem therefore determines whether its acquisition improvement applies.

Sources

  • Maris Ozols; Martin Roetteler; Jeremie Roland · · Research paper · Preprint recorded · arXiv
    Verification scope

    Recorded source check ·

    Coherent state-generation access model and amplitude-reweighting scope 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.