This issue is part of unitaryHACK26. You have to be registered to complete this issue.
Learn more about the PR submission process here and about unitaryHACK rules here!
A note about AI Slop: while we are open to collaboration with LLMs for unitaryHACK, fully AI-generated PRs are not acceptable. It is at the maintainers' discretion whether or not LLM-generated PRs are the right fit for the issues, and those that appear fully AI-generated may be immediately rejected. Read unitaryHACK's full AI Policy here
Describe the feature you'd like
The PauliString class contains logic for creating and manipulating PauliStrings, though only exists in single instances. The proposed class is a container for PauliStrings, which allows for:
- Addition and subtraction of Pauli Strings, including with weights
- Multiplication by floats
- Multiplication by PauliStrings
- Single-item index-ability & inclusion checks
- Conversion to & from Sum & list of tuple[float, str]
- [extra] Inter and extra-class operations (i.e. commutes with another operator, self commuting, etc.)
This may require changes to PauliString as well, depending on how coefficients are treated.
This issue is part of unitaryHACK26. You have to be registered to complete this issue.
Learn more about the PR submission process here and about unitaryHACK rules here!
A note about AI Slop: while we are open to collaboration with LLMs for unitaryHACK, fully AI-generated PRs are not acceptable. It is at the maintainers' discretion whether or not LLM-generated PRs are the right fit for the issues, and those that appear fully AI-generated may be immediately rejected. Read unitaryHACK's full AI Policy here
Describe the feature you'd like
The PauliString class contains logic for creating and manipulating PauliStrings, though only exists in single instances. The proposed class is a container for PauliStrings, which allows for:
This may require changes to PauliString as well, depending on how coefficients are treated.