-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: the behavior of SpinOp.to_matrix for multiple spin sites (#1189)
* fix: the behavior of SpinOp.to_matrix for multiple spin sites Closes #1187 * fix: the spin mappers after fixing the SpinOp.to_matrix method This change is necessary because the `num_spins` object does not get set to a lower bound during the `_validate_keys` method, since this gets bypassed when setting `copy=False`.
- Loading branch information
Showing
3 changed files
with
58 additions
and
5 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
5 changes: 5 additions & 0 deletions
5
releasenotes/notes/fix-spin-op-to-matrix-e84594248fc49fd7.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixes the behavior of :meth:`.SpinOp.to_matrix` for operators acting on more | ||
than a single spin. |
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