Please sign in to comment.
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...
Showing with 139 additions and 1 deletion.