Skip to content

Commit da04635

Browse files
committedOct 31, 2023
fix(qir2cirq): make 'args' variable positional arguments (*args) for compatibility
1 parent 9959e8c commit da04635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tensorcircuit/translation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def _unitary_(self) -> Any:
139139
return self.uMatrix
140140

141141
def _circuit_diagram_info_(
142-
self, args: Optional[cirq.CircuitDiagramInfoArgs]
142+
self, *args: Optional[cirq.CircuitDiagramInfoArgs]
143143
) -> List[str]:
144144
return [self.name] * self.nqubit
145145

0 commit comments

Comments
 (0)