From 4d300da39a7b08497f2d88ca2365060034e99c4b Mon Sep 17 00:00:00 2001 From: AthenaCaesura Date: Fri, 2 Dec 2022 12:06:14 -0500 Subject: [PATCH] feat(_circuit_conversions): add S and T dagger --- .../integrations/qiskit/conversions/_circuit_conversions.py | 2 ++ .../integrations/qiskit/conversions/circuit_conversions_test.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/orquestra/integrations/qiskit/conversions/_circuit_conversions.py b/src/orquestra/integrations/qiskit/conversions/_circuit_conversions.py index 2cb7f3e..47f55c4 100644 --- a/src/orquestra/integrations/qiskit/conversions/_circuit_conversions.py +++ b/src/orquestra/integrations/qiskit/conversions/_circuit_conversions.py @@ -57,6 +57,8 @@ def _orquestra_expr_from_qiskit(expr): _builtin_gates.ZZ: qiskit.circuit.library.RZZGate, _builtin_gates.U3: qiskit.circuit.library.U3Gate, _builtin_gates.Delay: qiskit.circuit.Delay, + _builtin_gates.S.dagger: qiskit.extensions.SdgGate, + _builtin_gates.T.dagger: qiskit.extensions.TdgGate, } diff --git a/tests/orquestra/integrations/qiskit/conversions/circuit_conversions_test.py b/tests/orquestra/integrations/qiskit/conversions/circuit_conversions_test.py index a80f593..821776b 100644 --- a/tests/orquestra/integrations/qiskit/conversions/circuit_conversions_test.py +++ b/tests/orquestra/integrations/qiskit/conversions/circuit_conversions_test.py @@ -28,6 +28,8 @@ (_builtin_gates.CZ, qiskit.extensions.CZGate()), (_builtin_gates.SWAP, qiskit.extensions.SwapGate()), (_builtin_gates.ISWAP, qiskit.extensions.iSwapGate()), + (_builtin_gates.S.dagger, qiskit.extensions.SdgGate()), + (_builtin_gates.T.dagger, qiskit.extensions.TdgGate()), ] EQUIVALENT_PARAMETRIC_GATES = [