Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK. Go to the latest version.

Oracle

class Oracle(*args, **kwargs)

GitHub

Base class for oracles.

This method should initialize the module and use an exception if a component of the module is not available.

Parameters

  • args (list) – args
  • kwargs (dict) – kwargs

Attributes

ancillary_register

returns ancillary register

circuit

output_register

returns output register

variable_register

returns variable register


Methods

construct_circuit

abstract Oracle.construct_circuit()

Construct the oracle circuit.

Returns

A quantum circuit for the oracle.

Was this page helpful?
Report a bug or request content on GitHub.