Skip to content

Fix classical control diagram symbols and svg #7233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
coverage
  • Loading branch information
daxfohl committed Apr 7, 2025
commit eaa0367a4d221520d5b15b8e9f6403b3abd04fe5
4 changes: 3 additions & 1 deletion cirq-core/cirq/contrib/svg/svg_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ def test_svg():
cirq.PhasedXPowGate(exponent=0.123, phase_exponent=0.456).on(c),
cirq.Z(a),
cirq.measure(a, b, c, key='z'),
cirq.MatrixGate(np.eye(2)).on(a),
cirq.MatrixGate(np.eye(2)).on(a).with_classical_controls('z'),
)
)
assert '?' in svg_text
assert '<svg' in svg_text
assert '</svg>' in svg_text
assert 'double' in svg_text
assert 'arrow' in svg_text


def test_svg_noise():
Expand Down