Skip to content

Commit

Permalink
Update dependencies (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
airwoodix committed Aug 23, 2024
1 parent b89b776 commit a904342
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 220 deletions.
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

0 comments on commit a904342

Please sign in to comment.