Skip to content

update to qiskit v1 #24

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ version = "0.2.0"
# "version",
# ]
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9,<4"
license = {file = "LICENSE.txt"}
description = "Repository for a quantum prototype"
authors = [
{ name = "Nicolas Renaud", email = "[email protected]"},
]

dependencies = [
"certifi>=2021.5.30",
"certifi>=2025.7.9",
"importlib_metadata>=4.8.1",
"qiskit-aer>=0.10.3",
"qiskit>=0.44",
"qiskit_experiments>=0.5.3",
"qiskit_ibm_runtime>=0.9.3",
"qiskit_algorithms>=0.2.1",
"qiskit-aer>=0.0.17.1",
"qiskit>=1.4.3,<2.0.0",
"qiskit_experiments>=0.11.0",
"qiskit_ibm_runtime>=0.40.1",
"qiskit_algorithms>=0.3.1",
"ipykernel>=6.15.0",
"matplotlib>=3.5.3",
"pylatexenc>=2.10",
Expand All @@ -40,8 +40,8 @@ dev = [
"treon>=0.1.3",
"pytest>=6.2.5",
"pytest-randomly>=1.2.0",
"mypy>=0.780",
"mypy-extensions>=0.4.3",
"mypy>=1.16.00",
"mypy-extensions>=1.0.0",
"jupyter-sphinx>=0.3.2",
"nbsphinx>=0.8.8",
"sphinx-autodoc-typehints>=1.17.0",
Expand Down
6 changes: 3 additions & 3 deletions vqls_prototype/solver/vqls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import numpy as np

from qiskit import QuantumCircuit
from qiskit.primitives import BaseEstimator, BaseSampler
from qiskit.primitives import BaseEstimatorV1, BaseSamplerV1
from qiskit_algorithms.utils import validate_bounds
from qiskit.quantum_info import Statevector
from qiskit_algorithms.optimizers import Minimizer, Optimizer
Expand Down Expand Up @@ -125,10 +125,10 @@ class VQLS(BaseSolver):

def __init__(
self,
estimator: BaseEstimator,
estimator: BaseEstimatorV1,
ansatz: QuantumCircuit,
optimizer: Union[Optimizer, Minimizer],
sampler: Optional[Union[BaseSampler, None]] = None,
sampler: Optional[Union[BaseSamplerV1, None]] = None,
initial_point: Optional[Union[np.ndarray, None]] = None,
gradient: Optional[Union[BaseEstimatorGradient, Callable, None]] = None,
max_evals_grouped: Optional[int] = 1,
Expand Down