Skip to content
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

chore: Remove Python 3.11 upper bound #17

Merged
merged 3 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cloudcoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
# Run jobs for a couple of Python versions.
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]
python: ["3.9", "3.10", "3.11"]

name: CloudTestCoverage - Python ${{ matrix.python }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# Run jobs for a couple of Python versions.
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]
python: ["3.9", "3.10", "3.11"]

name: TestCoverage - Python ${{ matrix.python }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# Run jobs for a couple of Python versions.
strategy:
matrix:
python: ["3.8", "3.9", "3.10"]
python: ["3.9", "3.10", "3.11"]

name: Style - Python ${{ matrix.python }}

Expand Down
10 changes: 4 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,16 @@ include_package_data = True
package_dir =
= src
packages = find_namespace:
python_requires = >=3.8,!=3.9.7,<3.11
python_requires = >=3.9,!=3.9.7

install_requires =
numpy>=1.20
scipy>=1.4.1
sympy>=1.5,<=1.9
orquestra-quantum
amazon-braket-sdk<=1.25.2
boto3<=1.24.38



# Previously, we have had some incompatibilities with braket
# This is a cautionary upper bound for a known good version
amazon-braket-sdk<=1.57.2

[options.packages.find]
where = src
Expand Down
6 changes: 5 additions & 1 deletion tests/orquestra/braket/simulator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ def test_braket_local_wf_simulator_fulfills_circuit_runner_contracts(contract):
assert contract(simulator)


@pytest.mark.parametrize("contract", simulator_gate_compatibility_contracts())
@pytest.mark.local
# Braket doesn't support the RH gate, so we're excluding it from the test set.
@pytest.mark.parametrize(
"contract", simulator_gate_compatibility_contracts(gates_to_exclude=["RH"])
)
def test_braket_simulator_uses_correct_gate_definitionscontract(contract):
simulator = braket_local_simulator()
assert contract(simulator)
Loading