Skip to content

Use doubled wires for classical bits in SVG output - #8556

Merged
mhucka merged 10 commits into
quantumlib:mainfrom
mhucka:svg-use-doubled-lines
Dec 2, 2026
Merged

mhucka merged 10 commits into
quantumlib:mainfrom
mhucka:svg-use-doubled-lines

Conversation

@mhucka

@mhucka mhucka commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

This changes the SVG output to use the more conventional doubled lines to represent classical wires.

This changes the SVG output to use the more conventional doubled lines
to represent classical wires.
@mhucka

mhucka commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Here are some example new renderings compared to how they were before:

image image image

@mhucka
mhucka marked this pull request as ready for review November 30, 2026 07:48
@mhucka
mhucka requested a review from a team as a code owner November 30, 2026 07:48
@mhucka
mhucka requested review from NoureldinYosri, dstrain115, fdmalone and pavoljuhas and removed request for fdmalone November 30, 2026 07:48
@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.58%. Comparing base (70e03b4) to head (032823f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8556      +/-   ##
==========================================
- Coverage   99.58%   99.58%   -0.01%     
==========================================
  Files        1139     1139              
  Lines      105682   105740      +58     
==========================================
+ Hits       105247   105304      +57     
- Misses        435      436       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot added the size: M 50< lines changed <250 label Nov 30, 2026
Comment thread cirq-core/cirq/contrib/svg/svg.py Resolved

@pavoljuhas pavoljuhas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see inline for code clean up. Otherwise it visually LGTM.

@mhucka
mhucka requested a review from pavoljuhas December 1, 2026 04:49
Comment thread cirq-core/cirq/contrib/svg/svg_test.py Resolved

@pavoljuhas pavoljuhas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Before merging, please remove calls to pytest.approx which seem unnecessary.

mhucka and others added 2 commits December 2, 2026 03:43
@mhucka
mhucka enabled auto-merge December 2, 2026 03:43
@mhucka
mhucka added this pull request to the merge queue Dec 2, 2026
Merged via the queue into quantumlib:main with commit e6e1221 Dec 2, 2026
46 checks passed
@mhucka
mhucka deleted the svg-use-doubled-lines branch December 2, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/contrib size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants