From 3ad9644c7a4632c7b68b97ff13465cd950ab8560 Mon Sep 17 00:00:00 2001 From: "J. S. Kottmann" Date: Wed, 20 Mar 2024 22:12:49 +0100 Subject: [PATCH] Update qasm.py gettting closer --- src/tequila/circuit/qasm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tequila/circuit/qasm.py b/src/tequila/circuit/qasm.py index 9aa8345e..5ccd0dac 100644 --- a/src/tequila/circuit/qasm.py +++ b/src/tequila/circuit/qasm.py @@ -329,6 +329,9 @@ def parse_command(command: str, custom_gates_map: Dict[str, QCircuit], qregister if name.startswith("rx(") or name.startswith("ry(") or name.startswith("rz(") or \ name.startswith("crx(") or name.startswith("cry(") or name.startswith("crz("): + get_angle(name)[0] + i = name.find('(') + name = name[0:i] name = name.upper() name = [x for x in name] name[-1] = name[-1].lower()