Is your feature request related to a problem? Please describe.
There is currently no functionality for changing the state space labels of a Model. This could be useful when the structure of the model stays the same but the user would like to apply it to a different set of qubits. While this is unlikely to be used when modeling a real device with qubit-specific noise, it could be useful when performing simulations with qubit-agnostic noise models, or in the future for modular devices with similar noise patterns on qubit subsets.
Currently, that workflow would require mapping the qubit labels of the pspec, and then recreating the model from the pspec. This is fine if it is a mostly standard construction, but more annoying if significant customization was done.
Describe the solution you'd like
An analogous function to pygsti.circuits.Circuit.map_state_space_labels_inplace.
Is your feature request related to a problem? Please describe. There is currently no functionality for changing the state space labels of a
Model
. This could be useful when the structure of the model stays the same but the user would like to apply it to a different set of qubits. While this is unlikely to be used when modeling a real device with qubit-specific noise, it could be useful when performing simulations with qubit-agnostic noise models, or in the future for modular devices with similar noise patterns on qubit subsets.Currently, that workflow would require mapping the qubit labels of the pspec, and then recreating the model from the pspec. This is fine if it is a mostly standard construction, but more annoying if significant customization was done.
Describe the solution you'd like An analogous function to
pygsti.circuits.Circuit.map_state_space_labels_inplace
.