Quantum instruction side effect
A quantum instruction call changes the state of referenced subsystems or produces measurement records, even when its machine-level arguments look like ordinary handles.
On this page
Scientific definition and boundary
A quantum instruction call changes the state of referenced subsystems or produces measurement records, even when its machine-level arguments look like ordinary handles. An optimizer must preserve those effects and their ordering where operations do not commute. Treating such calls as pure numerical functions can incorrectly remove, merge, or reorder physically distinct actions.
Sources
Verification scope
Recorded source check ·
Official specification content retrieved, including compilation model, profiles and QIR/LLVM version distinctions.
The control-flow example explains language-independent semantics. Its scope excludes compiler, profile, parser and backend execution.