From da04635846b941d6af638e556dd23f6257565853 Mon Sep 17 00:00:00 2001 From: ztzhu1 Date: Tue, 31 Oct 2023 17:08:40 +0800 Subject: [PATCH] fix(qir2cirq): make 'args' variable positional arguments (*args) for compatibility --- tensorcircuit/translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorcircuit/translation.py b/tensorcircuit/translation.py index 5e8ddea2..78136967 100644 --- a/tensorcircuit/translation.py +++ b/tensorcircuit/translation.py @@ -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