Skip to content

Commit

Permalink
fix for issue Rendering: incorrect size of circuit box #414
Browse files Browse the repository at this point in the history
  • Loading branch information
oradomskyi committed Jul 30, 2024
1 parent c5c0873 commit 7afdc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perceval/rendering/circuit/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def render_circuit(self,
if c.is_composite() and c._components:
if recursive:
self._current_subblock_info = self._subblock_info.setdefault(c, {})
self.open_subblock(shiftr, c.name, self.get_circuit_size(c, recursive=True), c._color)
self.open_subblock(shiftr, c.name, self.get_circuit_size(c, recursive=False), c._color)
self.render_circuit(
c,
shift=shiftr[0],
Expand Down

0 comments on commit 7afdc2f

Please sign in to comment.