Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions qiskit/aqua/operators/weighted_pauli_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ def construct_evaluation_circuit(self, wave_function, statevector_mode,

Raises:
AquaError: if Operator is empty
AquaError: Can not find quantum register with `q` as the name and do not provide
quantum register explicitly
AquaError: if quantum register is not provided explicitly and
cannot find quantum register with `q` as the name
AquaError: The provided qr is not in the wave_function
"""
if self.is_empty():
Expand All @@ -636,8 +636,8 @@ def construct_evaluation_circuit(self, wave_function, statevector_mode,
if qr is None:
qr = find_regs_by_name(wave_function, 'q')
if qr is None:
raise AquaError("Either providing the quantum register (qr) explicitly"
"or used `q` as the name in the input circuit.")
raise AquaError("Either provide the quantum register (qr) explicitly or use"
" `q` as the name of the quantum register in the input circuit.")
else:
if not wave_function.has_register(qr):
raise AquaError("The provided QuantumRegister (qr) is not in the circuit.")
Expand Down