Skip to content

Commit

Permalink
Pass phase in PauliList.from_symplectic example (#7436)
Browse files Browse the repository at this point in the history
I believe this is what was intended when the example was originally added
(#5993), as this now matches the method signature, and the `phase`
on the previous line is no longer an unused variable.
  • Loading branch information
garrison authored Dec 23, 2021
1 parent 517265c commit 8e54baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/quantum_info/operators/symplectic/pauli_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class PauliList(BasePauli, LinearMixin, GroupMixin):
z = np.array([[True, True], [False, False]])
x = np.array([[False, True], [True, False]])
phase = np.array([0, 1])
pauli_list = PauliList.from_symplectic(z, x)
pauli_list = PauliList.from_symplectic(z, x, phase)
print("4. ", pauli_list)
**Data Access**
Expand Down

0 comments on commit 8e54baa

Please sign in to comment.