File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
cirq-core/cirq/transformers/gauge_compiling Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def _gauges_arg_converter(gauges: str | Sequence[cirq.Gate] = 'clifford') -> tup
46
46
def _repr_fn (gauges : tuple [cirq .Gate , ...]) -> str :
47
47
if gauges is _PAULIS or gauges == _PAULIS :
48
48
return '"pauli"'
49
- if gauges is _CLIFFORDS or gauges == _PAULIS :
49
+ if gauges is _CLIFFORDS or gauges == _CLIFFORDS :
50
50
return '"clifford"'
51
51
if gauges is _INV_CLIFFORDS or gauges == _INV_CLIFFORDS :
52
52
return '"inv_clifford"'
@@ -128,11 +128,11 @@ class IdleMomentsGauge:
128
128
129
129
@functools .cached_property
130
130
def gauges_inverse (self ) -> tuple [cirq .Gate , ...]:
131
- if self .gauges is _PAULIS :
131
+ if self .gauges == _PAULIS :
132
132
return _PAULIS
133
- if self .gauges is _CLIFFORDS :
133
+ if self .gauges == _CLIFFORDS :
134
134
return _INV_CLIFFORDS
135
- if self .gauges is _INV_CLIFFORDS :
135
+ if self .gauges == _INV_CLIFFORDS :
136
136
return _CLIFFORDS
137
137
return tuple (g ** - 1 for g in self .gauges )
138
138
You can’t perform that action at this time.
0 commit comments