Custom.construct_circuit¶
- Custom.construct_circuit(mode='circuit', register=None)[source]¶
Construct the statevector of desired initial state.
- Parameters
mode – vector 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’.