From a0352bcd047b7aaf4e101587e699c82e269e8406 Mon Sep 17 00:00:00 2001 From: "J. S. Kottmann" Date: Wed, 20 Mar 2024 14:46:08 +0100 Subject: [PATCH] Update qasm.py --- 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 6076058d..9aa8345e 100644 --- a/src/tequila/circuit/qasm.py +++ b/src/tequila/circuit/qasm.py @@ -316,7 +316,7 @@ def parse_command(command: str, custom_gates_map: Dict[str, QCircuit], qregister G = getattr(gates, name.upper()) target = get_qregister(args[0], qregisters) control = None - if name[0] == c: + if name[0].lower() == 'c': control = get_qregister(args[0], qregisters) target = get_qregister(args[1], qregisters) return G(control=control, target=target)