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 remaining unit tests to use FakeGeneric #10918

Merged
merged 28 commits into from
Jan 31, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d0a9647
Update V2 tests to use FakeGeneric or GenericTarget
ElePT Nov 23, 2023
f227917
Add missing tests and fixes
ElePT Nov 24, 2023
07f4213
Fix calibrations and adjust tests
ElePT Nov 30, 2023
548d084
Fix remaining tests
ElePT Nov 30, 2023
6569f29
Merge branch 'main' into fake-backends
ElePT Nov 30, 2023
bee2a2d
Add test_backend_v2 test
ElePT Nov 30, 2023
96fe781
Add Aer check to sparse_pauli_op test
ElePT Dec 1, 2023
a2ceed7
Fix noise defaults
ElePT Dec 4, 2023
ec4180a
Fix value
ElePT Dec 4, 2023
0d9509c
Merge branch 'main' into fake-backends
ElePT Dec 4, 2023
d1d98f9
Fix lint
ElePT Dec 4, 2023
56f4fba
Delete spurious files
ElePT Dec 5, 2023
fd7ac1a
Merge from main
ElePT Jan 29, 2024
518f2a2
Update class names, fix conflicts post-merge.
ElePT Jan 30, 2024
23a3d4d
Extract coupling maps, improve style
ElePT Jan 30, 2024
8b705fb
Fix passmanager test
ElePT Jan 30, 2024
a0e8d5b
More test fixes
ElePT Jan 30, 2024
2768e27
New attempt at fixing tests
ElePT Jan 30, 2024
5e57a10
Please, mr. backend_estimator test, give me a break and reproduce my …
ElePT Jan 30, 2024
724a6c5
Trying again
ElePT Jan 30, 2024
0f903e4
Apply suggestions from Kevin's code review
ElePT Jan 31, 2024
b21961c
Move cmaps to new file, fix black
ElePT Jan 31, 2024
31d5fc1
Merge branch 'main' of https://github.com/Qiskit/qiskit into fake-bac…
ElePT Jan 31, 2024
54ebd80
Fix tests
ElePT Jan 31, 2024
a68a293
Replace FakeBackendSimple with BasicSimulator
ElePT Jan 31, 2024
5a38910
Merge branch 'main' of https://github.com/Qiskit/qiskit into fake-bac…
ElePT Jan 31, 2024
9f7775b
Fix passmanager config test
ElePT Jan 31, 2024
025a11d
Fix seed for vf2 layout tests
ElePT Jan 31, 2024
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
Prev Previous commit
Next Next commit
Merge from main
  • Loading branch information
ElePT committed Jan 29, 2024

Verified

This commit was created on github.com and signed with GitHub’s verified signature.
commit fd7ac1a69059de3bff277ed7f0d4c2b1f0f12fd4
5 changes: 1 addition & 4 deletions qiskit/providers/fake_provider/__init__.py
Original file line number Diff line number Diff line change
@@ -250,7 +250,4 @@
from .fake_1q import Fake1Q
from .fake_backend_v2 import FakeBackendV2, FakeBackend5QV2
from .fake_mumbai_v2 import FakeMumbaiFractionalCX

# Configurable fake backend
from .utils.configurable_backend import ConfigurableFakeBackend
from .fake_generic import FakeGeneric, GenericTarget
from .generic_backend_v2 import GenericBackendV2
6 changes: 2 additions & 4 deletions test/python/primitives/test_backend_estimator.py
Original file line number Diff line number Diff line change
@@ -25,16 +25,14 @@
from qiskit.circuit import QuantumCircuit
from qiskit.circuit.library import RealAmplitudes
from qiskit.primitives import BackendEstimator, EstimatorResult
from qiskit.providers import JobV1
from qiskit.providers.fake_provider import FakeNairobi
from qiskit.providers.fake_provider import FakeNairobi, GenericBackendV2
from qiskit.providers.backend_compat import BackendV2Converter
from qiskit.providers.fake_provider.fake_backend_v2 import FakeBackendSimple
from qiskit.quantum_info import SparsePauliOp
from qiskit.test import QiskitTestCase
from qiskit.transpiler import PassManager
from qiskit.utils import optionals

BACKENDS = [FakeNairobi(), BackendV2Converter(FakeNairobi()), FakeBackendSimple()]
BACKENDS = [FakeNairobi(), BackendV2Converter(FakeNairobi()), GenericBackendV2()]


class CallbackPass(DummyAP):
7 changes: 3 additions & 4 deletions test/python/primitives/test_backend_sampler.py
Original file line number Diff line number Diff line change
@@ -25,10 +25,9 @@
from qiskit import QuantumCircuit
from qiskit.circuit.library import RealAmplitudes
from qiskit.primitives import BackendSampler, SamplerResult
from qiskit.providers import JobStatus, JobV1
from qiskit.providers.fake_provider import FakeNairobi
from qiskit.providers import JobStatus
from qiskit.providers.fake_provider import FakeNairobi, GenericBackendV2
from qiskit.providers.backend_compat import BackendV2Converter
from qiskit.providers.fake_provider.fake_backend_v2 import FakeBackendSimple
from qiskit.providers.basicaer import QasmSimulatorPy
from qiskit.test import QiskitTestCase
from qiskit.transpiler import PassManager
@@ -304,7 +303,7 @@ def test_primitive_job_status_done(self, backend):
def test_primitive_job_size_limit_backend_v2(self):
"""Test primitive respects backend's job size limit."""

class FakeBackendLimitedCircuits(FakeBackendSimple):
class FakeBackendLimitedCircuits(GenericBackendV2):
"""FakeBackend V2 with job size limit."""

@property
You are viewing a condensed version of this merge commit. You can view the full changes here.