@@ -196,7 +196,8 @@ def standard_gatename_unitaries():
196
196
* 'Gsqrtiswap' : square-root of ISWAP gate, used in some superconducting qubit platforms.
197
197
* 'Gxx', 'Gzz' : MS-style parity gates
198
198
* 'Gcres', 'Gecres' : Cross-resonance and echoed cross-resonance gates. Native gate operations common on transmon systems (including IBM).
199
-
199
+ * 'Gecr' : alternative name for the echoed cross-resonance gate, matching OpenQASM / IBM conventions.
200
+
200
201
* Non-Clifford gates:
201
202
202
203
* 'Gt', 'Gtdag' : the T and inverse T gates (T is a Z rotation by pi/4).
@@ -302,7 +303,8 @@ def u_op(exp):
302
303
std_unitaries ['Gcres' ] = _spl .expm (- 1j * _np .pi / 4 * sigmaxz )
303
304
std_unitaries ['Gecres' ] = _np .array ([[0 , 1 , 0. , 1j ], [1. , 0 , - 1j , 0. ],
304
305
[0. , 1j , 0 , 1 ], [- 1j , 0. , 1 , 0 ]], complex )/ _np .sqrt (2 )
305
-
306
+ std_unitaries ['Gecr' ] = std_unitaries ['Gecres' ] # alias
307
+
306
308
std_unitaries ['Gzr' ] = Gzr ()
307
309
std_unitaries ['Gczr' ] = Gczr ()
308
310
@@ -403,6 +405,7 @@ def standard_gatenames_stim_conversions():
403
405
ecr_unitary = _np .array ([[0 , 1 , 0. , 1j ], [1. , 0 , - 1j , 0. ],
404
406
[0. , 1j , 0 , 1 ], [- 1j , 0. , 1 , 0 ]], complex )/ _np .sqrt (2 )
405
407
gate_dict ['Gecres' ] = stim .Tableau .from_unitary_matrix (ecr_unitary , endian = 'big' )
408
+ gate_dict ['Gecr' ] = gate_dict ['Gecres' ]
406
409
407
410
return gate_dict
408
411
0 commit comments