diff --git a/src/qibo/_openqasm.py b/src/qibo/_openqasm.py index 8a2f596eb9..b3e37193cf 100644 --- a/src/qibo/_openqasm.py +++ b/src/qibo/_openqasm.py @@ -61,7 +61,8 @@ def __init__( ): self.parser = openqasm3.parser self.defined_gates = {} - self.q_registers, self.c_registers = {}, set() + self.q_registers = {} + self.c_registers = set() def to_circuit(self, qasm_string: str, accelerators=None, density_matrix=False): """Converts a QASM program into a :class:`qibo.models.Circuit`.