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

[feature] human-readable representation of RPMMetadata.pvm_keys #25

Open
mrossinek opened this issue May 27, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@mrossinek
Copy link
Member

The RPMMetadata.pvm_keys attribute currently simply stores the index of the PVM in the context of the POVMImplementation which generated the parameters.

It would be nice, if we provided a more human-readable format for inspecting this data.

For example, in the case of (LocallyBiased)ClassicalShadows we could properly associate the indices 0, 1, 2 with their respective measurement basis X, Y, Z (possibly a different order) and make a nicer visual representation when inspecting the pvm_keys.

@mrossinek mrossinek added the enhancement New feature or request label May 27, 2024
@mrossinek
Copy link
Member Author

With #26 nearing completion, the possible twirling should be taken into account for such a human-readable representation. Maybe we can do smth along the lines of:

pvm_idx meaning visual repr.
0 untwirled X X
1 untwirled Y Y
2 untwirled Z Z
3 twirled X x
4 twirled Y y
5 twirled Z z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants