Skip to main content
Functions:

unary_select

unary_select(
unitaries: QCallableList,
selector: Const[QNum]
) -> None
[Qmod Classiq-library function] Implements an unconditional SELECT oracle using unary iteration (Babbush et al., arXiv:1805.03662, Section III.A). The operation maps: ∣ℓ⟩∣ψ⟩→∣ℓ⟩ Uℓ ∣ψ⟩|\ell\rangle|\psi\rangle \to |\ell\rangle\, U_\ell\,|\psi\rangle Uses the MSB of the selector as the root branch indicator, requiring one fewer auxiliary qubit than a controlled variant would. Parameters: