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

Add support for non-standard POVMs and qudits to write_empty_protocol_data #370

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

coreyostrove
Copy link
Contributor

This PR patches the bug reported in #321. Previously the function pygsti.io.write_empty_protocol_data had the assumptions of qubits and that the readout was done in the standard basis hardcoded in. This lead to unexpected behavior when using models (really processor specs) with non-standard readout or even qudits with standard readout for dim>2. This PR adds in support for both of these things. For qudits this includes support for mismatching dimensions on the subsystems. This currently doesn't support multiple POVMs, and for non-standard POVMs if there were more than one we currently simply take the first in the list.

Let me know if you have any questions or concerns.

This patches the write_empty_protocol_data function to add in the previously missing support for non-standard POVMs and for standard qudit POVMs (i.e. with dimension >2). For qudits this also supports having qudits of different dimensions. Not included is anything for handling instruments, which will require some additional work if desired.
@coreyostrove coreyostrove changed the title Add support for non-standard POVMs and qudits Add support for non-standard POVMs and qudits to write_empty_protocol_data Nov 14, 2023
@coreyostrove coreyostrove marked this pull request as ready for review November 14, 2023 17:47
@sserita sserita merged commit f9a8b65 into develop Nov 21, 2023
13 checks passed
@sserita sserita deleted the bugfix-empty-protocol-data branch November 21, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants