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
Fix seed for vf2 layout tests
  • Loading branch information
ElePT committed Jan 31, 2024

Verified

This commit was created on github.com and signed with GitHub’s verified signature.
commit 025a11dfc3ea9873d08c8b4e85d292895dd54706
8 changes: 5 additions & 3 deletions test/python/transpiler/test_vf2_layout.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
# (C) Copyright IBM 2021, 2024.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
@@ -460,7 +460,7 @@ def test_3q_circuit_Tenerife(self):

def test_3q_circuit_vigo_with_custom_scores(self):
"""Test custom ErrorMap from analysis pass are used for scoring."""
backend = GenericBackendV2(num_qubits=5)
backend = GenericBackendV2(num_qubits=5, seed=42)
target = backend.target

class FakeScore(AnalysisPass):
@@ -715,7 +715,9 @@ def test_qregs_valid_layout_output(self):

Reproduce from https://github.com/Qiskit/qiskit-terra/issues/8667
"""
backend = GenericBackendV2(basis_gates=["cx", "id", "rz", "sx", "x"], num_qubits=16)
backend = GenericBackendV2(
basis_gates=["cx", "id", "rz", "sx", "x"], num_qubits=16, seed=42
)
qr = QuantumRegister(16, name="qr")
cr = ClassicalRegister(5)
qc = QuantumCircuit(qr, cr)
Loading