-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addition of operators and scalars + extra dunder methods (#2849)
* feat (Operator): ✨ Add sum with scalar. * chore (TODO): ✏️ Add TODO comment. * chore (changelog): ✏️ Add feature to changelog. * chore (changelog): ✏️ Small fix. * feat (Operator): ✨ Add dunder methods. * fix (Hamiltonian): 🐛 Call super().__add__(). * test (Operation): 🧪 Add dunder test. * fix (Operator): 🐛 Raise error if other is of incorrect type. * refactor (Operation): ♻️ Make use of the SProd class. * style (operation): 🎨 Import Sum and SProd. * style (operation): 🎨 Revert import. * chore (changelog): ✏️ Add feature to changelog. * test (Operation): 🧪 Modify dunder test. * test (Operation): 🧪 Modify dunder test. * docs: 📝 Add TODO comment.
- Loading branch information
1 parent
cad746f
commit 4837dd7
Showing
4 changed files
with
70 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters