qiskit.aqua.components.reciprocals.Reciprocal¶
-
class
Reciprocal
[source]¶ Base class for reciprocal calculation.
This method should initialize the module and use an exception if a component of the module is not available.
Methods
__init__
()Initialize self.
construct_circuit
(mode[, register, circuit])Construct the initial state circuit.
sv_to_resvec
(statevector, num_q)Convert statevector to result vector.
-
abstract
construct_circuit
(mode, register=None, circuit=None)[source]¶ Construct the initial state circuit.
- Parameters
mode (str) – ‘matrix’ or ‘circuit’
register (QuantumRegister) – register for circuit construction.
circuit (QuantumCircuit) – circuit for construction.
- Returns
The reciprocal circuit.
-
abstract