Skip to content

Commit

Permalink
fix qlasskit repr
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Oct 6, 2023
1 parent dae628a commit ab0f46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qlasskit/qlassf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(
self._compiled_gate = None

def __repr__(self):
arg_str = ", ".join(map(lambda arg: f"{arg[0]}:{arg[1]}", self.args))
arg_str = ", ".join(map(lambda arg: f"{arg.name}:{arg.ttype}", self.args))
exp_str = "\n\t".join(map(lambda exp: f"{exp[0]} = {exp[1]}", self.expressions))
return f"QlassF<{self.name}>({arg_str}) -> bool[{self.ret_size}]:\n\t{exp_str}"

Expand Down

0 comments on commit ab0f46f

Please sign in to comment.