Skip to content

Commit

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

(cherry picked from commit 900e910)

Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
  • Loading branch information
mergify[bot] and eltociear committed Feb 28, 2024
1 parent 31c97a8 commit f493a46
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 f493a46

Please sign in to comment.