PhaseEstimationCircuit.construct_circuit¶
- PhaseEstimationCircuit.construct_circuit(state_register=None, ancillary_register=None, auxiliary_register=None, measurement=False)[source]¶
Construct the Phase Estimation circuit
- Parameters
state_register (QuantumRegister) – the optional register to use for the quantum state
ancillary_register (QuantumRegister) – the optional register to use for
qubits (the ancillary measurement) –
auxiliary_register (QuantumRegister) – an optional auxiliary quantum register
measurement (bool) – Boolean flag to indicate if measurement should be included
circuit. (in the) –
- Returns
the QuantumCircuit object for the constructed circuit
- Return type
- Raises
RuntimeError – Multiple identity pauli terms are present
ValueError – invalid mode