Make box separation in circuit_diagram_matplotlib always equal to one (QAE-869, QAE-870)

Explanation of changes

Make the time interval between operations always equal to one. This removes time information from the circuit diagram and shows only the logic order of the gates

Before: Overlap2

After: Fixed2

Motivation of changes

circuit_diagram_matplotlib plots overlapping boxes when the time interval between operations is smaller than the duration of these operations. Closes issues #126 (closed) and #61 (closed)


Merge checklist

See also merge request guidelines

  • Merge request has been reviewed (in-depth by a knowledgeable contributor), and is approved by a project maintainer.
  • New code is covered by unit tests (or N/A).
  • New code is documented and docstrings use numpydoc format (or N/A).
  • New functionality: considered making private instead of extending public API (or N/A).
  • Public API changed: added @deprecated (or N/A).
  • Tested on hardware (or N/A).
  • CHANGELOG.md and AUTHORS.md have been updated (or N/A).
  • Windows tests in CI pipeline pass (manually triggered by maintainers before merging).

For reference, the issues workflow is described in the contribution guidelines.

Edited by Robert Sokolewicz

Merge request reports

Loading