-
Notifications
You must be signed in to change notification settings - Fork 585
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add out_flow_constraint function and private function, add unit tests (…
…#1220) * start qaoa cycles module, add mapping between edges and wires, add tests * update formatting and imports * update qaoa documentation, change cycles.py to cycle.py * add private helper functions for squaring Hamiltonian terms and collecting duplicate terms, add unit tests * add out_flow_constraint function and private function, add unit tests * Apply black to tests * update WIP entry in CHANGELOG.md * Apply suggestions from code review Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com> * remove _collect_duplicates * add assertions for operators in unit tests * fix docstring spacing, remove type hint * apply black * remove _collect_duplicates() * apply black * Line widths * typo * Apply suggestions from code review Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com> * add WIP entry to CHANGELOG.md * retrigger checks * apply black Co-authored-by: trbromley <brotho02@gmail.com> Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
- Loading branch information
1 parent
ea74076
commit fea7095
Showing
3 changed files
with
187 additions
and
5 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