circuit.convert_to_stim_tableau() does not work when the qubits in the circuit are not labelled by integers from 0 to N. # This works c = pygsti.circuits.Circuit('Gcphase:0:1@(0,1)') c.convert_to_stim_tableau() # This does not c = pygsti.circuits.Circuit('Gcphase:2:3@(2,3)') c.convert_to_stim_tableau() # Neither does this c = pygsti.circuits.Circuit('Gcphase:Q0:Q1@(Q0,Q1)') c.convert_to_stim_tableau() This was tested on develop. All cases should give the same tableau.