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
cirq-core target gatesets: accept additional gates to keep untouched. (quantumlib#5445)
Builds on top of quantumlib#5429
The internal gate representation for `additional_gates` is updated to match `cirq.Gateset`:
* Equality check uses GateFamily representation. Otherwise different representations of the gate will not be considered equal.
* JSON uses GateFamily representation.
* repr uses the representation passed in via the constructor.
`assert_optimizes` in `cz_gateset_test.py` is updated to take in an optional `additional_gates` instead, to exercise CZTargetGateset constructor's defaulting logic.
No tests are added since `additional_gates` need to be set in existing tests after `ignore_errors` is set to False.
@tanujkhattar
0 commit comments