Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gadhvirushiraj committed Nov 5, 2024
1 parent e79f148 commit 8d09544
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qutip_qip/circuit/mat_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,9 @@ def _draw_multiq_gate(self, gate: Gate, layer: int) -> None:
for i in sorted(
gate.targets
if gate.targets is not None
else list(range(self._qwires)) # adaptation for globalphase
else list(
range(self._qwires)
) # adaptation for globalphase
)
]
text_width = self._get_text_width(
Expand Down

0 comments on commit 8d09544

Please sign in to comment.