Skip to content

Commit

Permalink
Update src/qibo/_openqasm.py
Browse files Browse the repository at this point in the history
Co-authored-by: Renato Mello <[email protected]>
  • Loading branch information
BrunoLiegiBastonLiegi and renatomello authored Feb 23, 2024
1 parent 63f348f commit c436cc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qibo/_openqasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit c436cc1

Please sign in to comment.