Zero.construct_circuit

Zero.construct_circuit(mode='circuit', register=None)[source]

Construct the statevector of desired initial state.

Parameters
  • modevector or circuit. The vector mode produces the vector. While the circuit constructs the quantum circuit corresponding that vector.

  • register – qubits for circuit construction.

Returns

statevector.

Return type

QuantumCircuit or numpy.ndarray

Raises

AquaError – when mode is not ‘vector’ or ‘circuit’.