Skip to content

Commit

Permalink
Remove spurious SXGate._ARRAY
Browse files Browse the repository at this point in the history
This was left in only as a mistake during the writing of Qiskit#10296;
originally the `with_gate_array` decorator didn't exist and all classes
had manual `_ARRAY` specifiers, but `SXGate`'s got left in accidentally
when all the rest were removed in favour of the decorator.
  • Loading branch information
jakelishman committed Sep 21, 2023
1 parent 113f92a commit 1f4f988
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions qiskit/circuit/library/standard_gates/sx.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ class SXdgGate(SingletonGate):
= e^{-i pi/4} \sqrt{X}^{\dagger}
"""
_ARRAY = numpy.array(
[[0.5 - 0.5j, 0.5 + 0.5j], [0.5 + 0.5j, 0.5 - 0.5j]], dtype=numpy.complex128
)
_ARRAY.setflags(write=False)

def __init__(self, label: Optional[str] = None, duration=None, unit=None, _condition=None):
"""Create new SXdg gate."""
Expand Down

0 comments on commit 1f4f988

Please sign in to comment.