From a4a11c83dda0e30afe487d91ef01223bc115a31d Mon Sep 17 00:00:00 2001 From: IsmaelCesar Date: Wed, 13 Mar 2024 10:56:42 -0300 Subject: [PATCH] applying tox -eblack --- qiskit/circuit/library/standard_gates/x.py | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/qiskit/circuit/library/standard_gates/x.py b/qiskit/circuit/library/standard_gates/x.py index 95ba77a279b5..7a20a69bdda4 100644 --- a/qiskit/circuit/library/standard_gates/x.py +++ b/qiskit/circuit/library/standard_gates/x.py @@ -1391,8 +1391,8 @@ def __new__( duration=None, unit="dt", _base_label=None, - relative_phase: bool = False, # pylint: disable=unused-argument - action_only: bool = False, # pylint: disable=unused-argument + relative_phase: bool = False, # pylint: disable=unused-argument + action_only: bool = False, # pylint: disable=unused-argument ): """Create a new MCX instance. @@ -1435,8 +1435,6 @@ def __init__( self._action_only = action_only super().__init__(num_ctrl_qubits, label=label, ctrl_state=ctrl_state, _name="mcx_vchain") - - def inverse(self, annotated: bool = False): """Invert this gate. The MCX is its own inverse. @@ -1510,9 +1508,7 @@ def _define(self): [], ) ) - definition.append( - (TdgGate(), [targets[i]], []) - ) + definition.append((TdgGate(), [targets[i]], [])) definition.append((HGate(), [targets[i]], [])) else: definition.append((HGate(), [targets[i]], [])) @@ -1524,9 +1520,7 @@ def _define(self): [], ) ) - definition.append( - (TdgGate(), [targets[i]], []) - ) + definition.append((TdgGate(), [targets[i]], [])) definition.append( ( CXGate(), @@ -1576,9 +1570,7 @@ def _define(self): definition.append((CXGate(), [q_ancillas[i], q_ancillas[i + 1]], [])) definition.append((TGate(), [q_ancillas[i + 1]], [])) definition.append((CXGate(), [q_controls[2 + i], q_ancillas[i + 1]], [])) - definition.append( - (TdgGate(), [q_ancillas[i + 1]], []) - ) + definition.append((TdgGate(), [q_ancillas[i + 1]], [])) definition.append((HGate(), [q_ancillas[i + 1]], [])) if self._action_only: