diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index b8dcb91..d4e3d0f 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -23,7 +23,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: '3.x' - name: Install dependencies run: | pip install -e .[test] # to put juliapkg.json in sys.path diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index b98ecf5..4026ead 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.x' - name: Install dependencies run: | pip install tox diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index fc649c0..0282a88 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -17,7 +17,7 @@ jobs: max-parallel: 2 matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v5 - name: Install juliaup diff --git a/.readthedocs.yml b/.readthedocs.yml index 1b4bf7c..24eb834 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -15,9 +15,9 @@ formats: # setting up build os and python version build: - os: ubuntu-22.04 + os: ubuntu-lts-latest tools: - python: "3.9" + python: latest # Optionally set the version of Python and requirements required to build your docs python: diff --git a/pyproject.toml b/pyproject.toml index 190197c..c156de0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,16 +7,17 @@ name = "amazon-braket-simulator-v2" description = "Local simulation of quantum circuits" readme = {file = "README.md", content-type = "text/markdown"} license = {file = "LICENSE"} -requires-python = ">=3.9" +requires-python = ">=3.10" classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Natural Language :: English", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Operating System :: OS Independent" ] dynamic = ["version", "dependencies", "optional-dependencies"] diff --git a/requirements-test.txt b/requirements-test.txt index 0621b22..10b8a75 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -5,15 +5,15 @@ flake8-rst-docstrings isort pre-commit pylint -pytest==7.1.2 +pytest pytest-benchmark pytest-cov pytest-rerunfailures pytest-timeout pytest-xdist -qiskit==1.4.2 -qiskit-braket-provider==0.4.3 -qiskit-algorithms +qiskit==1.4.3 +qiskit-braket-provider==0.6.0 +qiskit-algorithms==0.3.1 sphinx sphinx-rtd-theme sphinxcontrib-apidoc diff --git a/src/braket/simulator_v2/base_simulator_v2.py b/src/braket/simulator_v2/base_simulator_v2.py index 9fbb580..edae96f 100644 --- a/src/braket/simulator_v2/base_simulator_v2.py +++ b/src/braket/simulator_v2/base_simulator_v2.py @@ -136,7 +136,7 @@ def _handle_mmaped_result(raw_result, mmap_paths, obj_lengths): class BaseLocalSimulatorV2(BaseLocalSimulator): def __init__(self, device: str): - global __JULIA_POOL__ + global __JULIA_POOL__ # noqa: F824 # if the pool is already set up, no need # to do anything if __JULIA_POOL__ is None: @@ -167,7 +167,7 @@ def run_openqasm( as a result type when shots=0. Or, if StateVector and Amplitude result types are requested when shots>0. """ - global __JULIA_POOL__ + global __JULIA_POOL__ # noqa: F824 # pass inputs and source as strings to avoid pickling a dict inputs_dict = json.dumps(openqasm_ir.inputs) if openqasm_ir.inputs else "{}" @@ -210,7 +210,7 @@ def run_multiple( list[GateModelTaskResult]: A list of result objects, with the ith object being the result of the ith program. """ - global __JULIA_POOL__ + global __JULIA_POOL__ # noqa: F824 try: jl_results = __JULIA_POOL__.apply( translate_and_run_multiple,