Skip to content

Commit

Permalink
Merge branch 'fix-qir2cirq' of https://github.com/ztzhu1/tensorcircuit
Browse files Browse the repository at this point in the history
…into tqlpr188
  • Loading branch information
refraction-ray committed Nov 1, 2023
2 parents 12b8972 + da04635 commit c0d6ddd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tensorcircuit/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ def _num_qubits_(self) -> int:
def _unitary_(self) -> Any:
return self.uMatrix

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

if extra_qir is not None and len(extra_qir) > 0:
Expand Down

0 comments on commit c0d6ddd

Please sign in to comment.