-
Notifications
You must be signed in to change notification settings - Fork 343
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
feat: Bootstrap experimental, toggleable high-performance backend for Quil programs. #1755
Open
MarquessV
wants to merge
25
commits into
master
Choose a base branch
from
rustiffi
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
505b5a8
test: setup benchmarking
MarquessV f11b491
split pyquil into python package and rust core
MarquessV b0f2f08
merge benchmarks
MarquessV 80853a6
get benchmark working
MarquessV 77d1157
fix typo in docstring
MarquessV 3e95298
update bench fixture, re-enable pyquil DefCalibration
MarquessV 6bff4f9
fix expression number conversion, reduce boilerplate in calibration
MarquessV 2c8c8ea
remove grpc-web ref
MarquessV 3294a3c
remove unused imports, apply cleanup to declaration
MarquessV 60a97f1
add reversed From<GateModifier> so enums dont drift
MarquessV e8acd63
cleanup instruction module, add comment explaining deepcopy
MarquessV 22b7324
clarify doc comments
MarquessV d797814
add __str__, __repr__ to program
MarquessV 9258898
remove unused doc string
MarquessV be5c1c8
break up setstate method
MarquessV a3194d6
fix error message
MarquessV 6e5cf18
revert test case changes
MarquessV 0009a5f
Rust backend is toggle-able
MarquessV 75696ec
move import
MarquessV c84cf63
fix docstring
MarquessV 64f3fd7
restore build backend
MarquessV 9ac6ad1
remove unneeded module
MarquessV f492c36
fix fixed-qubit test
MarquessV f05d4f1
Merge branch 'master' into rustiffi
MarquessV 19ab61f
remove nest_asyncio
MarquessV 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,14 @@ | ||
import os | ||
|
||
from pyquil._version import pyquil_version | ||
from pyquil.quil import Program | ||
from pyquil.api import list_quantum_computers, get_qc | ||
from pyquil.api import get_qc, list_quantum_computers | ||
|
||
if os.environ.get("PYQUIL_EXPERIMENTAL_BACKEND", False): | ||
from pyquil._core import * | ||
from pyquil._core.program import Program | ||
else: | ||
from pyquil.quil import Program | ||
|
||
__version__ = pyquil_version | ||
|
||
__all__ = ["__version__", "Program", "get_qc", "list_quantum_computers"] |
Oops, something went wrong.
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.
❤️
Side note, we can replace
black
andflake8
withruff
, as it contains the functionality of both.