Skip to content

Commit

Permalink
Update src/tequila/wavefunction/qubit_wavefunction.py
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Hüttenhofer <[email protected]>
  • Loading branch information
davibinco and ohuettenhofer authored Dec 11, 2024
1 parent fa2db49 commit 92374b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tequila/wavefunction/qubit_wavefunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def __repr__(self):
index = index.integer
if self.numbering == BitNumbering.LSB:
index = reverse_int_bits(index, self._n_qubits)
if np.isclose(coeff.imag,0.0):
if np.isclose(coeff.imag, 0.0):
result += f"{coeff.real:+2.4f} |{index:0{self._n_qubits}b}> "
else:
result += f"({coeff.real:+2.4f} + {coeff.imag:+2.4f}i) |{index:0{self._n_qubits}b}>"
Expand Down

0 comments on commit 92374b5

Please sign in to comment.