@@ -98,13 +98,17 @@ def _create_device_spec_with_horizontal_couplings():
9898 cirq_google .FSimGateFamily (gates_to_accept = [cirq .SQRT_ISWAP_INV ]),
9999 cirq_google .FSimGateFamily (gates_to_accept = [cirq .CZ ]),
100100 cirq .GateFamily (cirq_google .SYC ),
101+ cirq .GateFamily (cirq_google .SYC , ignore_global_phase = False ),
101102 cirq .GateFamily (cirq .SQRT_ISWAP ),
103+ cirq .GateFamily (cirq .SQRT_ISWAP , ignore_global_phase = False ),
102104 cirq .GateFamily (cirq .SQRT_ISWAP_INV ),
105+ cirq .GateFamily (cirq .SQRT_ISWAP_INV , ignore_global_phase = False ),
103106 cirq .GateFamily (cirq .CZ ),
107+ cirq .GateFamily (cirq .CZ , ignore_global_phase = False ),
104108 cirq .GateFamily (cirq .ops .phased_x_z_gate .PhasedXZGate ),
105109 cirq .GateFamily (cirq .ops .common_gates .XPowGate ),
106110 cirq .GateFamily (cirq .ops .common_gates .YPowGate ),
107- cirq .GateFamily (cirq .I ),
111+ cirq .GateFamily (cirq .IdentityGate ),
108112 cirq .GateFamily (cirq .ops .SingleQubitCliffordGate ),
109113 cirq .GateFamily (cirq .ops .HPowGate ),
110114 cirq .GateFamily (cirq .ops .phased_x_gate .PhasedXPowGate ),
@@ -133,14 +137,18 @@ def _create_device_spec_with_horizontal_couplings():
133137 cirq_google .FSimGateFamily (gates_to_accept = [cirq .SQRT_ISWAP_INV ]): base_duration * 2 ,
134138 cirq_google .FSimGateFamily (gates_to_accept = [cirq .CZ ]): base_duration * 3 ,
135139 cirq .GateFamily (cirq_google .SYC ): base_duration * 0 ,
140+ cirq .GateFamily (cirq_google .SYC , ignore_global_phase = False ): base_duration * 0 ,
136141 cirq .GateFamily (cirq .SQRT_ISWAP ): base_duration * 1 ,
142+ cirq .GateFamily (cirq .SQRT_ISWAP , ignore_global_phase = False ): base_duration * 1 ,
137143 cirq .GateFamily (cirq .SQRT_ISWAP_INV ): base_duration * 2 ,
144+ cirq .GateFamily (cirq .SQRT_ISWAP_INV , ignore_global_phase = False ): base_duration * 2 ,
138145 cirq .GateFamily (cirq .CZ ): base_duration * 3 ,
146+ cirq .GateFamily (cirq .CZ , ignore_global_phase = False ): base_duration * 3 ,
139147 cirq .GateFamily (cirq .ops .phased_x_z_gate .PhasedXZGate ): base_duration * 4 ,
140148 cirq .GateFamily (cirq .ops .common_gates .XPowGate ): base_duration * 4 ,
141149 cirq .GateFamily (cirq .ops .common_gates .YPowGate ): base_duration * 4 ,
142150 cirq .GateFamily (cirq .ops .common_gates .HPowGate ): base_duration * 4 ,
143- cirq .GateFamily (cirq .I ): base_duration * 4 ,
151+ cirq .GateFamily (cirq .IdentityGate ): base_duration * 4 ,
144152 cirq .GateFamily (cirq .ops .SingleQubitCliffordGate ): base_duration * 4 ,
145153 cirq .GateFamily (cirq .ops .phased_x_gate .PhasedXPowGate ): base_duration * 4 ,
146154 cirq .GateFamily (
@@ -173,13 +181,16 @@ def _create_device_spec_with_horizontal_couplings():
173181 cirq_google .FSimGateFamily (gates_to_accept = [cirq .SQRT_ISWAP ]),
174182 cirq_google .FSimGateFamily (gates_to_accept = [cirq .SQRT_ISWAP_INV ]),
175183 cirq .GateFamily (cirq_google .SYC ),
184+ cirq .GateFamily (cirq_google .SYC , ignore_global_phase = False ),
176185 cirq .GateFamily (cirq .SQRT_ISWAP ),
186+ cirq .GateFamily (cirq .SQRT_ISWAP , ignore_global_phase = False ),
177187 cirq .GateFamily (cirq .SQRT_ISWAP_INV ),
188+ cirq .GateFamily (cirq .SQRT_ISWAP_INV , ignore_global_phase = False ),
178189 cirq .GateFamily (cirq .CZPowGate ),
179190 cirq .ops .common_gates .XPowGate ,
180191 cirq .ops .common_gates .YPowGate ,
181192 cirq .ops .common_gates .HPowGate ,
182- cirq .GateFamily (cirq .I ),
193+ cirq .GateFamily (cirq .IdentityGate ),
183194 cirq .ops .SingleQubitCliffordGate ,
184195 cirq .ops .phased_x_gate .PhasedXPowGate ,
185196 cirq .GateFamily (
@@ -205,13 +216,16 @@ def _create_device_spec_with_horizontal_couplings():
205216 cirq_google .FSimGateFamily (gates_to_accept = [cirq .SQRT_ISWAP_INV ]),
206217 cirq_google .FSimGateFamily (gates_to_accept = [cirq .CZ ]),
207218 cirq .GateFamily (cirq_google .SYC ),
219+ cirq .GateFamily (cirq_google .SYC , ignore_global_phase = False ),
208220 cirq .GateFamily (cirq .SQRT_ISWAP_INV ),
221+ cirq .GateFamily (cirq .SQRT_ISWAP_INV , ignore_global_phase = False ),
209222 cirq .GateFamily (cirq .CZPowGate ),
210223 cirq .GateFamily (cirq .CZ ),
224+ cirq .GateFamily (cirq .CZ , ignore_global_phase = False ),
211225 cirq .ops .common_gates .XPowGate ,
212226 cirq .ops .common_gates .YPowGate ,
213227 cirq .ops .common_gates .HPowGate ,
214- cirq .GateFamily (cirq .I ),
228+ cirq .GateFamily (cirq .IdentityGate ),
215229 cirq .ops .SingleQubitCliffordGate ,
216230 cirq .ops .phased_x_gate .PhasedXPowGate ,
217231 cirq .GateFamily (
@@ -238,13 +252,17 @@ def _create_device_spec_with_horizontal_couplings():
238252 cirq_google .FSimGateFamily (gates_to_accept = [cirq .SQRT_ISWAP_INV ]),
239253 cirq_google .FSimGateFamily (gates_to_accept = [cirq .CZ ]),
240254 cirq .GateFamily (cirq_google .SYC ),
255+ cirq .GateFamily (cirq_google .SYC , ignore_global_phase = False ),
241256 cirq .GateFamily (cirq .SQRT_ISWAP ),
257+ cirq .GateFamily (cirq .SQRT_ISWAP , ignore_global_phase = False ),
242258 cirq .GateFamily (cirq .SQRT_ISWAP_INV ),
259+ cirq .GateFamily (cirq .SQRT_ISWAP_INV , ignore_global_phase = False ),
243260 cirq .GateFamily (cirq .CZ ),
261+ cirq .GateFamily (cirq .CZ , ignore_global_phase = False ),
244262 cirq .ops .common_gates .XPowGate ,
245263 cirq .ops .common_gates .YPowGate ,
246264 cirq .ops .common_gates .HPowGate ,
247- cirq .GateFamily (cirq .I ),
265+ cirq .GateFamily (cirq .IdentityGate ),
248266 cirq .ops .SingleQubitCliffordGate ,
249267 cirq .ops .phased_x_gate .PhasedXPowGate ,
250268 cirq .GateFamily (
0 commit comments