Skip to content

Fix valid PAULI_GATE_LIKE error listing 0,1,2,3 repeatedly instead of actual allowed values #4001

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
2 changes: 1 addition & 1 deletion cirq/ops/pauli_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -1528,6 +1528,6 @@ def _pauli_like_to_pauli_int(key: Any, pauli_gate_like: PAULI_GATE_LIKE):
f'Expected {key!r}: {pauli_gate_like!r} to have a '
f'cirq.PAULI_GATE_LIKE value. '
f"But the value isn't in "
f"{list(PAULI_GATE_LIKE_TO_INDEX_MAP.values())!r}"
f"{list(PAULI_GATE_LIKE_TO_INDEX_MAP.keys())!r}"
)
return cast(int, pauli_int)