Skip to content

Commit

Permalink
chore: Remove Python 3.11 upper bound (#13)
Browse files Browse the repository at this point in the history
* chore: Remove Python 3.11 upper bound

* fix: Use ... as type hint  in Callable to allow arbitrary number of args for Qulacs gate factory
  • Loading branch information
jamesclark-Zapata authored Oct 19, 2023
1 parent 9bc5fb5 commit e2271fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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
Expand Down
2 changes: 1 addition & 1 deletion src/orquestra/integrations/qulacs/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _factory(*args):
return _factory


QULACS_GATE_FACTORY = Callable[[Any], qulacs.QuantumGateBase]
QULACS_GATE_FACTORY = Callable[..., qulacs.QuantumGateBase]

ORQUESTRA_TO_QULACS_GATES: Dict[str, Tuple[QULACS_GATE_FACTORY, Callable]] = {
# 1-qubit, non-parametric
Expand Down

0 comments on commit e2271fe

Please sign in to comment.