-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide options in the cut-finder API to turn LO gate and wire cut finding off or on, expose min-reached flag. #586
Merged
Merged
Changes from 15 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
b0809c7
enable only wire cut finding
ibrahim-shehzad d2396e2
edit tests
ibrahim-shehzad d064584
explore adding new flags
ibrahim-shehzad 98c693a
Handle multiple arguments when cutting both wires
ibrahim-shehzad 21c35cf
black, mypy, remove the erroneous example I added to the tutorial.
ibrahim-shehzad b581a18
doc string
ibrahim-shehzad 381bbf7
update doc string
ibrahim-shehzad 422ee7d
update tests
ibrahim-shehzad f784d9b
reorganise tests
ibrahim-shehzad 0ffcc5f
add cut both wires test
ibrahim-shehzad 9f03bea
Merge branch 'main' into wire-cut-finder
ibrahim-shehzad 8748a1c
add release note
ibrahim-shehzad 7fcfcb1
edit release note
ibrahim-shehzad 2a486ad
un-expose LOCC cost functions everywhere
ibrahim-shehzad 6791391
pull type hint change from main
ibrahim-shehzad 5ae9106
add min reached flag.
ibrahim-shehzad 0bd4250
edit release note
ibrahim-shehzad 4d6c264
Merge branch 'main' into wire-cut-finder
ibrahim-shehzad f041356
Change to upper case in doc string
ibrahim-shehzad c8b7858
Italicize
ibrahim-shehzad 6b04f2a
Edit bool in release note
ibrahim-shehzad 645c58d
Update reference in release note
ibrahim-shehzad 3517b31
Edit reference in release note
ibrahim-shehzad 53deb86
change flag to minimum reached
ibrahim-shehzad 4c4d4bb
pull changes
ibrahim-shehzad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/new-flags-to-control-cut-finder-search-e499e1ea49abb0bc.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
features: | ||
- | | ||
When specifying instances of :class:`~OptimizationParameters` that are inputted to :meth:`circuit_knitting.cutting.find_cuts()`, the user can now control whether the | ||
ibrahim-shehzad marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cut-finder looks only for gate cuts, only for wire cuts, or both, by setting the bools ``gate_lo`` and ``wire_lo`` appropriately. The default value | ||
of both of these is set to `True` and so the default search considers the possibility of both gate and wire cuts. | ||
ibrahim-shehzad marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One might want to investigate what happens when one sets both
gate_lo
andgate_lo
toFalse
. Ideally this will result in an informative error message (right?).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I want to acknowledge somewhere (i.e., in this comment) that we'll probably change the name of
gate_lo
eventually. since I doubt it makes any sense to implement LOCC gate cutting now that https://arxiv.org/abs/2312.11638 is out. I cannot think of a better name right this moment. The proper names will depend how far we get implementing parallel and black box cutting from that paper.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have gone ahead and added some of the updates that we discussed (7fcfcb1).