DeterministicStateOracle user defined type


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.Oracles

Package: Microsoft.Quantum.Standard

Represents an oracle for deterministic state preparation.

newtype DeterministicStateOracle = ((Qubit[] => Unit is Adj + Ctl));


The input to the oracle $O$ is:

  • The register that will store the desired quantum state $\ket{\psi}_s$.


This oracle defined by $O\ket{0}=\ket{\psi}$ acts on the on computational basis state $\ket{0}$ to create the state $\ket{\psi}$. The first parameter is the qubit register of $\ket{\psi}$.