-
Notifications
You must be signed in to change notification settings - Fork 355
feat: Bootstrap experimental, toggleable high-performance backend for Quil programs. #1755
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
base: master
Are you sure you want to change the base?
Changes from 17 commits
505b5a8
f11b491
b0f2f08
80853a6
77d1157
3e95298
6bff4f9
2c8c8ea
3294a3c
60a97f1
e8acd63
22b7324
d797814
9258898
be5c1c8
a3194d6
6e5cf18
0009a5f
75696ec
c84cf63
64f3fd7
9ac6ad1
f492c36
f05d4f1
19ab61f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,19 @@ | ||
| [project] | ||
| name = "pyquil" | ||
| requires-python = ">=3.8" | ||
| classifiers = [ | ||
| "Programming Language :: Rust", | ||
| "Programming Language :: Python :: Implementation :: CPython", | ||
| "Programming Language :: Python :: Implementation :: PyPy", | ||
| "Development Status :: 5 - Production/Stable", | ||
| "License :: OSI Approved :: Apache Software License", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| ] | ||
|
|
||
| [tool.poetry] | ||
| name = "pyquil" | ||
| version = "4.8.0" | ||
|
|
@@ -12,7 +28,6 @@ classifiers = [ | |
| "License :: OSI Approved :: Apache Software License", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Operating System :: OS Independent", | ||
| ] | ||
| keywords = ["quantum", "quil", "programming", "hybrid"] | ||
| packages = [{ include = "pyquil" }] | ||
|
|
@@ -31,6 +46,8 @@ tenacity = "^8.2.2" | |
| types-python-dateutil = "^2.8.19" | ||
| types-retry = "^0.9.9" | ||
| packaging = "^23.1" | ||
| deprecated = "^1.2.13" | ||
| types-deprecated = "^1.2.9.2" | ||
|
|
||
| # latex extra | ||
| ipython = { version = "^7.21.0", optional = true } | ||
|
|
@@ -44,24 +61,24 @@ pandoc = {version = "2.4b0", optional = true} | |
| matplotlib = {version = "^3.7.1", optional = true} | ||
| matplotlib-inline = {version = "^0.1.6", optional = true} | ||
| seaborn = {version = "^0.12.2", optional = true} | ||
| deprecated = "^1.2.13" | ||
| types-deprecated = "^1.2.9.2" | ||
|
|
||
| [tool.poetry.dev-dependencies] | ||
| black = "^22.8.0" | ||
| flake8 = "^3.8.1" | ||
| pytest = "^7.4.0" | ||
| pytest-cov = "^4.1.0" | ||
| mypy = "^1.5.0" | ||
| ruff = "^0.3.2" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❤️ Side note, we can replace |
||
| toml = "^0.10.2" | ||
| pytest-xdist = "^3.3.1" | ||
| pytest-rerunfailures = "^12.0.0" | ||
| pytest-timeout = "^1.4.2" | ||
| pytest-mock = "^3.11.1" | ||
| pytest-benchmark = "^4.0.0" | ||
| pytest-profiling = "^1.7.0" | ||
| respx = "^0.20" | ||
| nest-asyncio = "^1.5.6" | ||
| mock = { version = "^4.0", python = "<3.8" } | ||
| syrupy = "^3.0.6" | ||
| maturin = "^1.5.0" | ||
|
|
||
| [tool.poetry.extras] | ||
| latex = ["ipython"] | ||
|
|
@@ -71,9 +88,6 @@ docs = ["Sphinx", "sphinx-rtd-theme", "nbsphinx", "recommonmark", "pandoc", "mat | |
| setuptools = {version = "^69.0.2", python = ">=3.12"} | ||
| mypy = "^1.8.0" | ||
|
|
||
| [tool.ruff] | ||
| line-length = 120 | ||
|
|
||
| [tool.black] | ||
| line-length = 120 | ||
| target-version = ['py38'] | ||
|
|
@@ -99,9 +113,67 @@ exclude = ''' | |
| ) | ||
| ''' | ||
|
|
||
| [tool.ruff] | ||
| # Exclude a variety of commonly ignored directories. | ||
| exclude = [ | ||
| ".bzr", | ||
| ".direnv", | ||
| ".eggs", | ||
| ".git", | ||
| ".git-rewrite", | ||
| ".hg", | ||
| ".ipynb_checkpoints", | ||
| ".mypy_cache", | ||
| ".nox", | ||
| ".pants.d", | ||
| ".pyenv", | ||
| ".pytest_cache", | ||
| ".pytype", | ||
| ".ruff_cache", | ||
| ".svn", | ||
| ".tox", | ||
| ".venv", | ||
| ".vscode", | ||
| "__pypackages__", | ||
| "_build", | ||
| "buck-out", | ||
| "build", | ||
| "dist", | ||
| "node_modules", | ||
| "site-packages", | ||
| "venv", | ||
| ] | ||
| # Same as Black. | ||
| line-length = 120 | ||
| indent-width = 4 | ||
| # Assume Python 3.8 | ||
| target-version = "py38" | ||
|
|
||
| [tool.ruff.lint] | ||
| select = ["D", "E4", "E7", "E9", "F", "I", "B", "S", "W"] | ||
| ignore = [] | ||
| # Allow fix for all enabled rules (when `--fix`) is provided. | ||
| fixable = ["ALL"] | ||
| unfixable = [] | ||
| # Allow unused variables when underscore-prefixed. | ||
| dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
|
|
||
| [tool.ruff.format] | ||
| # Like Black, use double quotes for strings. | ||
| quote-style = "double" | ||
| # Like Black, indent with spaces, rather than tabs. | ||
| indent-style = "space" | ||
| # Like Black, respect magic trailing commas. | ||
| skip-magic-trailing-comma = false | ||
| # Like Black, automatically detect the appropriate line ending. | ||
| line-ending = "auto" | ||
|
|
||
| [tool.pytest.ini_options] | ||
| filterwarnings = ["ignore::DeprecationWarning:pyquil.*:", "ignore::DeprecationWarning:test.unit.*:"] | ||
|
|
||
| [build-system] | ||
| requires = ["poetry-core>=1.0.0"] | ||
| build-backend = "poetry.core.masonry.api" | ||
| requires = ["maturin>=1,<2"] | ||
| build-backend = "maturin" | ||
|
|
||
| [tool.maturin] | ||
| module-name = "pyquil._core" | ||
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.