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

Store pauli strings as a std::map or std::unordered_map in PauliOp #27

Open
stand-by opened this issue Sep 18, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@stand-by
Copy link
Collaborator

How about storing pauli_strings as a std::map or std::unordered_map instead of current std::vector?
That way it would be faster to resolve duplicated strings we end up with in several operations we have implemented for pauli op. We also wouldn't have to overload the interface with questioning user whether they want to compress or set dedupe=true.

@stand-by stand-by added the enhancement New feature or request label Sep 18, 2024
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

1 participant