Skip to content

circuit.convert_to_stim_tableau() fails for circuits with general qubit labels #619

@tjproct

Description

@tjproct

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.

Metadata

Metadata

Assignees

Labels

bugA bug or regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions