English
Languages
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.components.oracles.Oracle

class Oracle(*args, **kwargs)[source]

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

abstract __init__(*args, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(*args, **kwargs)

Initialize self.

construct_circuit()

Construct the oracle circuit.

Attributes

ancillary_register

returns ancillary register

circuit

output_register

returns output register

variable_register

returns variable register

abstract property ancillary_register

returns ancillary register

property circuit
abstract construct_circuit()[source]

Construct the oracle circuit.

Returns

A quantum circuit for the oracle.

abstract property output_register

returns output register

abstract property variable_register

returns variable register