Skip to content

Commit 5d660f5

Browse files
Corey OstroveJeremiah Hauth
authored andcommitted
Add ECR gate to stim conversions
Add the ECR gate to the stim conversion dictionary.
1 parent b42a672 commit 5d660f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pygsti/tools/internalgates.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,10 @@ def standard_gatenames_stim_conversions():
405405
'Gswap' : stim.Tableau.from_named_gate('SWAP'),
406406
'Gcphase' : stim.Tableau.from_named_gate('CZ')
407407
}
408+
ecr_unitary = _np.array([[0, 1, 0., 1j], [1., 0, -1j, 0.],
409+
[0., 1j, 0, 1], [-1j, 0., 1, 0]], complex)/_np.sqrt(2)
410+
gate_dict['Gecres'] = stim.Tableau.from_unitary_matrix(ecr_unitary, endian='big')
411+
408412
return gate_dict
409413

410414
def standard_gatenames_cirq_conversions():

0 commit comments

Comments
 (0)