You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Change qubit str representation
- Changes grid qubit string representation from (x, y) to q(x, y)
and line qubit from 1 to q1.
- This will make the string representation more distinctive.
- Added _circuit_diagram_info_ for Qid objects to make circuit diagrams
customizable for qubits. This allows us to keep circuit diagrams
largely unchanged.
- Other components such as pauli strings, that rely on qubit str
representation for formatting are changed.
This is a BREAKING CHANGE for anyone relying on string representation
of qubits.
Fixes: #2405
* Fix a bunch of tests.
* A few more errors.
* Switch to q(0) and fix a bunch of tests.
* Formatting and more tests fixed.
* Fix more tests.
* Fix two last tests.
* Fix bb84 example.
* Fix contrib and notebook tests.
* Update cirq-core/cirq/sim/simulator_test.py
Co-authored-by: Matthew Neeley <[email protected]>
* Update cirq-core/cirq/circuits/circuit.py
Co-authored-by: Matthew Neeley <[email protected]>
* Revert Grid Device to use circuit diagram names instead.
Co-authored-by: Matthew Neeley <[email protected]>
0 commit comments