Skip to content

Commit

Permalink
fix for issue Rendering: incorrect size of circuit box #414 (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
oradomskyi authored Aug 5, 2024
1 parent 336c466 commit 2f2b9d3
Show file tree
Hide file tree
Showing 10 changed files with 5,825 additions 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
Loading

0 comments on commit 2f2b9d3

Please sign in to comment.