-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Function to group qubit operators into tensor product basis sets (#494)
* Added method to split a QubitOperator into tensor product basis sets. Unit tests also added. * Raises added to docstring of TPB set function. * Minor formatting * Refactored code with helper function. Added simple qubit operator tests * Added more tests to for tensor product basis code using simple qubit operators * Switch to using RandomState, remove MolecularData tests, switch order of additions clause. * Removed randomize=False version of TPB code (now only random). Also removed associated tests. * Removed unnecessary imports (MolecularData and OrderedDict) * Switch from assertTrue to assertEqual * Bug fix in test (one valid outcome was missing) * Refactored if statement for additions to sub-operators. * Removed unnecessary whitespace * Added self to readme and notice
- Loading branch information
1 parent
ff14aaa
commit 9c2e029
Showing
5 changed files
with
139 additions
and
1 deletion.
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
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