From 1f4f98879fd6a66a8a774ce63df9090f300e45d3 Mon Sep 17 00:00:00 2001 From: Jake Lishman Date: Thu, 21 Sep 2023 16:55:04 +0100 Subject: [PATCH] Remove spurious `SXGate._ARRAY` This was left in only as a mistake during the writing of #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. --- qiskit/circuit/library/standard_gates/sx.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qiskit/circuit/library/standard_gates/sx.py b/qiskit/circuit/library/standard_gates/sx.py index 49fbb11c558c..7c1d58c0420d 100644 --- a/qiskit/circuit/library/standard_gates/sx.py +++ b/qiskit/circuit/library/standard_gates/sx.py @@ -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."""