-
Notifications
You must be signed in to change notification settings - Fork 990
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SVG Circuits] Give up gracefully on gates with big labels (#3007)
`MatrixGate` tries to print its whole matrix which is just huge. This PR hacks in a check that uses `?` for any gate whose label includes a newline. I will quickly remind reviewers that this functionality is in contrib, xref #2313 if anyone wants to "productionize" this functionality.
- Loading branch information
1 parent
5d6b8bc
commit 93ecd24
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters