-
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
Dont batch unless separate samplers are used for each subcircuit #333
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
ed5d2b0
Don't batch unnecessarily
caleb-johnson c2200d1
mypy
caleb-johnson 30c3bbf
black
caleb-johnson 3b46b80
Missing varname
caleb-johnson dccddc2
fix bug
caleb-johnson 78e7f6b
Clean up code
caleb-johnson 55a7c74
Improve comments
caleb-johnson ac96bbd
release note
caleb-johnson 206b8c3
release note
caleb-johnson 24e59aa
Update batch-by-sampler-c4ae836df9997b1d.yaml
caleb-johnson 07fbd1f
Update batch-by-sampler-c4ae836df9997b1d.yaml
caleb-johnson 7f5263d
Update batch-by-sampler-c4ae836df9997b1d.yaml
caleb-johnson dfb7454
Bump Python version in Dockerfile to 3.11 (#331)
garrison b2ac702
Fix formatting of example in `reduce_bitstrings` docstring (#332)
garrison 5ee8b00
Implement cutting of general 2-qubit unitaries (#302)
garrison cc75809
Improve the instructions regarding pandoc (#336)
garrison 801a6a3
Make the repository link more obvious from the Sphinx build (#338)
garrison 16d3799
Add README badge linking to stable documentation (#339)
garrison ac44f84
Update README.md (#340)
ibrahim-shehzad 199000f
Change var name
caleb-johnson 0b15abb
Add SECURITY.md (#337)
garrison a5fb5b4
Implement wire cutting as a two-qubit instruction (#174)
garrison 6e58bfb
merge main
caleb-johnson 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
upgrade: | ||
- | | ||
:func:`~circuit_knitting.cutting.execute_experiments` no longer creates separate jobs for each subcircuit by default. | ||
Now, separate jobs are only created if separate :class:`~qiskit.primitives.BaseSampler` instances are provided for each circuit partition. |
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.
Can't rely on numpy here anymore because there are now potentially different subcircuits coming in on the same batch, and those can have different numbers of subexperiments associated with them; therefore, we can't trivially reshape to the input size anymore.
We now have to "stream" the quasi-dists into the output data structure, using the input as a guide for how to re-build the structure