Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 24, 2024
1 parent d5ca0d3 commit aa4f97d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/qibo/quantum_info/basis.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,7 @@ def pauli_basis(

pauli_labels = {"I": matrices.I, "X": matrices.X, "Y": matrices.Y, "Z": matrices.Z}
basis_single = backend.cast([pauli_labels[label] for label in pauli_order])
einsum = (
np.einsum
if backend.name == "tensorflow"
else backend.np.einsum
)
einsum = np.einsum if backend.name == "tensorflow" else backend.np.einsum

if nqubits > 1:
dim = 2**nqubits
Expand Down

0 comments on commit aa4f97d

Please sign in to comment.