Skip to main content
IBM Quantum Platform
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

Oracle

class Oracle(*args, **kwargs)

GitHub

Bases: abc.ABC

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

Methods

construct_circuit

abstract Oracle.construct_circuit()

Construct the oracle circuit.

Returns

A quantum circuit for the oracle.


Attributes

ancillary_register

returns ancillary register

circuit

output_register

returns output register

variable_register

returns variable register

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