Skip to content

Commit

Permalink
update f-string formatting
Browse files Browse the repository at this point in the history
Co-authored-by: nate stemen <[email protected]>
  • Loading branch information
bdg221 and natestemen authored Oct 29, 2024
1 parent 1333ebf commit 99c7374
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mitiq/observable/pauli.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ def _measure_in(
for qubit in pauli._qubits_to_measure():
if qubit in existing_measurements:
raise ValueError(
f"""More than one measaurement found for qubit: """
f"""{qubit}. Only a single measurement is allowed """
f"""per qubit."""
f"More than one measaurement found for qubit: "
"{qubit}. Only a single measurement is allowed "
"per qubit."
)
support.update(pauli._qubits_to_measure())
measured = circuit + basis_rotations + cirq.measure(*sorted(support))
Expand Down

0 comments on commit 99c7374

Please sign in to comment.