TargetStateReflectionOracle function


This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.AmplitudeAmplification

Package: Microsoft.Quantum.Standard

Constructs a ReflectionOracle about the target state uniquely marked by the flag qubit.

function TargetStateReflectionOracle (idxFlagQubit : Int) : Microsoft.Quantum.Oracles.ReflectionOracle


The oracle returned by this function reflects about the $\ket{1}$ state of a flag qubit (given by the index idxFlagQubit).


idxFlagQubit : Int

Index to flag qubit $f$ of oracle.

Output : ReflectionOracle

A ReflectionOracle that reflects about the state marked by $\ket{1}_f$.

See Also