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

All sections

Saved
Skip Learn navigation
Encyclopedia
Glossary

In-place amplitude overwrite hazard

An in-place amplitude overwrite hazard arises when one member of a gate's amplitude pair is updated before its original value has been saved for computing the other member.

Edition released Coverage: Overview · Technical
On this page

Scientific definition and boundary

An in-place amplitude overwrite hazard arises when one member of a gate's amplitude pair is updated before its original value has been saved for computing the other member. The resulting array no longer equals the matrix action. Temporary variables or an equivalent safe update order prevent the error. Renormalizing the corrupted vector cannot generally restore the missing phase and amplitude relationships.

Sources

  • Google Quantum AI / Cirq · Documentation · quantumai.google
    Verification scope

    Recorded source check ·

    Simulation guide retrieved; explicit qubit_order semantics and distinction between state and measurement output inspected.

    Conceptual reference semantics only. No code execution or universal backend support claim.