forked from qiskit-community/qiskit-nature
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for Parameters to SparseLabelOp (qiskit-community#891)
* add support for Parameters to SparseLabelOp * fix isinstance for python < 3.10 * improve docs * chop zero Parameter * Update test/second_q/operators/test_sparse_label_op.py Co-authored-by: Max Rossmannek <[email protected]> * fix test * add is_parameterized and check it for unsupported operations * add assign_parameters * fix chop doc * lint * add parameters method * use dict instead of Mapping for data * return self instead of None for inplace * Revert "use dict instead of Mapping for data" This reverts commit 3480c79. * remove inplace option for assign_parameters * address comments * Update qiskit_nature/second_q/operators/sparse_label_op.py * fix equiv Co-authored-by: Max Rossmannek <[email protected]>
- Loading branch information
Showing
6 changed files
with
322 additions
and
53 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
Oops, something went wrong.