From a752e8c2a37618a5105baa391053cf8ba4a7d93c Mon Sep 17 00:00:00 2001 From: "J. S. Kottmann" Date: Mon, 18 Mar 2024 17:32:02 +0100 Subject: [PATCH] Update qasm.py (#334) Fixes issue #332 --- src/tequila/circuit/qasm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tequila/circuit/qasm.py b/src/tequila/circuit/qasm.py index 65878f76..7eb567ee 100644 --- a/src/tequila/circuit/qasm.py +++ b/src/tequila/circuit/qasm.py @@ -362,7 +362,7 @@ def parse_command(command: str, custom_gates_map: Dict[str, QCircuit], qregister control=get_qregister(args[0], qregisters), target=get_qregister(args[1], qregisters)) if name in ("s", "t", "sdg", "tdg"): - g = gates.Phase(pi / (2 if name.startswith("s") else 4), + g = gates.Phase(angle=pi / (2 if name.startswith("s") else 4), control=None, target=get_qregister(args[0], qregisters)) if name.find("dg") != -1: