Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give Models map/replace state space labels functionality #494

Open
sserita opened this issue Oct 3, 2024 · 0 comments
Open

Give Models map/replace state space labels functionality #494

sserita opened this issue Oct 3, 2024 · 0 comments
Labels
enhancement Request for a new feature or a change to an existing feature
Milestone

Comments

@sserita
Copy link
Contributor

sserita commented Oct 3, 2024

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.

@sserita sserita added the enhancement Request for a new feature or a change to an existing feature label Oct 3, 2024
@sserita sserita added this to the 0.9.14 milestone Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request for a new feature or a change to an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant