-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add U gate * modification according to feedback * fix linters * clean commented code * first version of gphase * handle drawing and control global phase * Adding a global phase attribute * add global phase to circuit unitary * first draft tests to check coverage * add more tests * add test with parametric global phase * add test for neg control qubit printing * clean up * simplify ctrl-gphase transform * feat: add str, repr and getitem to BasisState * add repr coverage * add index * add pop * fix phase target qubit * fix typing * add index and pop tests * fix code coverage * move unitary matrices * use a subindex in MomentKey * print global phase integration * fix docstrings * fix circuits zero total global phase * fix edge cases * fix to_unitary * temporary fix that checks classname * clean up test conditions * change logic according to feedback * update docstring * clean tests * update tests * replace control symbols * use box drawing characters * Revert "use box drawing characters" This reverts commit ccb81fa. * Revert "replace control symbols" This reverts commit 4efb8bc. * simplify all gphase case * change preprare_y_axis function name * create an helper function to compute the global phase * make control_basis_state more explicit * add comment and clean grouping * add test_only_neg_control_qubits * parametrize test_one_gate_with_global_phase * reformat * change to printing with fixed precision * fix docstring --------- Co-authored-by: Aaron Berdy <berdy@amazon.com>
- Loading branch information
1 parent
d45c9c8
commit 5d8d04c
Showing
11 changed files
with
639 additions
and
30 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.