Skip to content

Commit

Permalink
Fix typo in sparse_pauli_op.py (#11882)
Browse files Browse the repository at this point in the history
indicies -> indices

(cherry picked from commit 900e910)
  • Loading branch information
eltociear authored and jakelishman committed Feb 28, 2024
1 parent 31c97a8 commit c410c8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ def apply_layout(
)
n_qubits = num_qubits
if any(x >= n_qubits for x in layout):
raise QiskitError("Provided layout contains indicies outside the number of qubits.")
raise QiskitError("Provided layout contains indices outside the number of qubits.")
new_op = type(self)("I" * n_qubits)
return new_op.compose(self, qargs=layout)

Expand Down

0 comments on commit c410c8a

Please sign in to comment.