Japanese
言語
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.components.reciprocals.Reciprocal

class Reciprocal[ソース]

Base class for reciprocal calculation.

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

abstract __init__()[ソース]

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

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)[ソース]

Construct the initial state circuit.

パラメータ
  • mode (str) – 『matrix』 or 『circuit』

  • register (QuantumRegister) – register for circuit construction.

  • circuit (QuantumCircuit) – circuit for construction.

戻り値

The reciprocal circuit.

abstract sv_to_resvec(statevector, num_q)[ソース]

Convert statevector to result vector.

パラメータ
  • statevector (list) – The statevector from simulation.

  • num_q (int) – Number of qubits of result register.

戻り値

The result vector.