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 qiskit-ibm-runtime requirement from ~=0.20.0 to ~=0.36.1 #2314

Merged
merged 3 commits into from
Mar 7, 2025
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
6 changes: 3 additions & 3 deletions mitiq/interface/mitiq_qiskit/tests/test_qiskit_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import numpy as np
import pytest
from qiskit import QuantumCircuit
from qiskit_ibm_runtime.fake_provider import FakeLima
from qiskit_ibm_runtime.fake_provider import FakeLimaV2

from mitiq import MeasurementResult, Observable, PauliString
from mitiq.interface.mitiq_qiskit.qiskit_utils import (
Expand Down Expand Up @@ -217,7 +217,7 @@ def test_sample_bitstrings_with_backend():
two_qubit_circ.cx(0, 1)
measurement_result = sample_bitstrings(
circuit=two_qubit_circ,
backend=FakeLima(),
backend=FakeLimaV2(),
shots=5,
measure_all=True,
)
Expand Down Expand Up @@ -276,7 +276,7 @@ def test_compute_expectation_value_on_noisy_backend_with_qiskit_backend():
expval = compute_expectation_value_on_noisy_backend(
qiskit_circuit,
obs,
backend=FakeLima(),
backend=FakeLimaV2(),
)

assert isinstance(expval, complex)
Expand Down
4 changes: 2 additions & 2 deletions mitiq/zne/tests/test_zne.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,9 @@ def test_execute_with_zne_transpiled_qiskit_circuit():
"""Tests ZNE when transpiling to a Qiskit device. Note transpiling can
introduce idle (unused) qubits to the circuit.
"""
from qiskit_ibm_runtime.fake_provider import FakeSantiago
from qiskit_ibm_runtime.fake_provider import FakeSantiagoV2

santiago = FakeSantiago()
santiago = FakeSantiagoV2()
backend = AerSimulator.from_backend(santiago)

def execute(circuit: qiskit.QuantumCircuit, shots: int = 8192) -> float:
Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-qiskit.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
qiskit~=1.3.1
qiskit-aer~=0.15.1
qiskit-ibm-runtime~=0.20.0
qiskit-ibm-runtime~=0.36.1
ply==3.11