quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.24k stars 1.01k forks source link

Escape `&` in SVG diagrams #6579

Closed tanujkhattar closed 5 months ago

tanujkhattar commented 5 months ago

We have bloqs in Qualtran that use & on one of the output wires. The corresponding SVG diagram fails. This PR fixes it.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.79%. Comparing base (2474d47) to head (4da796f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6579 +/- ## ======================================= Coverage 97.79% 97.79% ======================================= Files 1124 1124 Lines 95658 95659 +1 ======================================= + Hits 93549 93550 +1 Misses 2109 2109 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

tanujkhattar commented 5 months ago

I don't know of a case on top of my head, but we can always revisit if someone complains.