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

Update dependencies #190

Merged
merged 2 commits into from
Aug 23, 2024
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: no-commit-to-branch
args: [--branch, master]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.6.0"
rev: "v0.6.2"
hooks:
- id: ruff
args: [ --fix ]
Expand All @@ -24,7 +24,7 @@ repos:
hooks:
- id: pyproject-fmt
- repo: https://github.com/crate-ci/typos
rev: "v1.23.6"
rev: "v1.23.7"
hooks:
- id: typos
- repo: https://github.com/econchick/interrogate
Expand Down
4 changes: 2 additions & 2 deletions examples/quickstart-estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from qiskit import QuantumCircuit
from qiskit.circuit.library import TwoLocal
from qiskit.primitives import BaseEstimator
from qiskit.primitives import BaseEstimatorV1
from qiskit.quantum_info import SparsePauliOp
from qiskit.quantum_info.operators.base_operator import BaseOperator
from scipy.optimize import minimize
Expand Down Expand Up @@ -60,7 +60,7 @@ def cost_function(
params: Sequence[float],
ansatz: QuantumCircuit,
hamiltonian: BaseOperator,
estimator: BaseEstimator,
estimator: BaseEstimatorV1,
) -> float:
"""Cost function for the VQE.

Expand Down
Loading