Skip to content

Commit

Permalink
numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace committed Sep 14, 2023
1 parent 2a39400 commit 8cb22b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qiskit_qec/operators/pauli.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ def to_instruction(self):
syntax=pauli_rep.PRODUCT_SYNTAX,
qubit_order="right-to-left",
)
if isinstance(phase_exp, np.ndarray):
phase_exp = phase_exp[0]

if len(pauli) == 1:
gate = {"I": IGate(), "X": XGate(), "Y": YGate(),
Expand Down

0 comments on commit 8cb22b2

Please sign in to comment.