Skip to content

Commit

Permalink
fix(qir2cirq): make 'args' variable positional arguments (*args) for …
Browse files Browse the repository at this point in the history
…compatibility
  • Loading branch information
ztzhu1 committed Oct 31, 2023
1 parent 9959e8c commit da04635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorcircuit/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _unitary_(self) -> Any:
return self.uMatrix

def _circuit_diagram_info_(
self, args: Optional[cirq.CircuitDiagramInfoArgs]
self, *args: Optional[cirq.CircuitDiagramInfoArgs]
) -> List[str]:
return [self.name] * self.nqubit

Expand Down

0 comments on commit da04635

Please sign in to comment.