-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit for greedy term grouping of Tomography Experiments * Improved comments * Updating function and variable names, adding to tests * Using greedy term grouping by default * Adding types to function inputs * Removing unnecessary comments * Fixing flake8 complaints * Further fixing flake8 complaints * Recalling my proper English grammar * Listing allowed values for grouping method * Making type of the input explicit * Improving doc-string for diagonal_basis_commutes(..) * Changing variable names for consistency * Making helper function (for greedy term grouping) private * Blank lines between description and parameters in doc-string * Giving the function 'diagonal_basis_commutes(..)' a better name * Making the function 'get_diagonalizing_basis(..)' private * Making _get_diagonalizing_basis(..) a bit more readable * Fixing flake8 complaint * Removing redundant code * More readable code for _get_diagonalizing_basis(..) * Adding private fuction extending the concept of being diagonal in the same tpb to ExperimentSettings * Two 1q operators are diagonal in each others natural tpb if and only if they commute * Refactoring to make grouping work with ExperimentSettings more directly * Minor flake8 fixes * 'an' only comes before vowels * _get_diagonalizing_basis makes _validate_all_diagonal_in_tpb do most of the work * Updating doc-string for _all_qubits_diagonal_in_tpb * Using already defined function to simplify code in other function * Shortening variable names * Preventing private function from mutating data structure * Ensuring updated tpb is at least as large as the one associated with ExperimentSetting it's being updated for * Re-organizing functions according to functionality * Manually bringing in changes from master (merge conflicts are messy) * Fixing failing test * Remove unused import * Don't import * from paulis (pulls in gunk since no __all__ defined) * Move things back to where they once were * pep8 * Split tests
- Loading branch information
1 parent
e813b9d
commit db42246
Showing
2 changed files
with
255 additions
and
31 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