quantum gate directory

Gates Groups SDKs GitHub
$O_f$

circuit-level· n qubits ·dimension $p$

Oracle

Implements a classical function as a reversible black-box unitary that can be queried coherently.

hermitian

An oracle is a quantum operation that implements a classical function $f: \{0, 1\}^n \to \{0, 1\}^m$ as a reversible, unitary operation. Given an input register $|x\rangle$ and output register $|y\rangle$ the gate acts as $$ |x\rangle \otimes |y\rangle \xmapsto{O_f} |x\rangle \otimes |b \oplus f(x)\rangle. $$ where $\oplus$ denotes bitwise XOR. By coherently evaluating $f$ on superpositions of inputs, oracles allow quantum algorithms to achieve speedups for search, decision, and hidden-structure problems, while treating the function as a black box.

Properties

  • Unitary embedding of a classical function via reversible computation and optional ancilla.
  • Often the dominant cost in query-complexity analyses.

Usage

  • Grover search, phase estimation, and hidden-structure algorithms.
  • Modeling problem-specific black boxes during algorithm design.

References

  • qiskit.circuit.library.BitFlipOracleGate
  • Microsoft: Understanding quantum oracles
  • Classiq: Quantum Oracles Workshop

Also written

  • $U_f$
  • $\mathcal{O}_f$

Groups

  • orthogonal
  • permutation

Data

  • This gate as JSON
  • Edit this page on GitHub

SDK support

How to call this gate in each framework. Hover a ⓘ for a note; the support matrix compares every gate at once.

SDKName
Qiskit qiskit.circuit.library.BitFlipOracleGate ⓘ
PennyLane —
Cirq —
Q# —
PyQuil —
Braket — ⓘ
BQSKit —
Qibo —
pytket — ⓘ
Stim —
OpenQASM —

← All gates

gate.directory made by nts $\oplus$ rdls