Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fake generic and modify tests (#10266)
* Added a FakeGeneric BackendV2 backend, this is just a bare minimum working code * All FakeBackends (like FakeMelbourne, FakeBoeblingen ,etc) is replaced with FakeGeneric * relocated FakeGeneric in fake_provider directory; replaced if-elif with instruction_dict in fake_generic.py; added support of grid type of coupling map; using lower number of qubits, passed all tests of test_transpiler except one method ( test_parallel_dispatch_lazy_cal_loading ) * added tests for FakeGeneric * This commit just reformats test_transpiler.py fake_generic.py and test_fake_generic.py * Update qiskit/providers/fake_provider/fake_generic.py Co-authored-by: atharva-satpute <55058959+atharva-satpute@users.noreply.github.com> * Update qiskit/providers/fake_provider/fake_generic.py Co-authored-by: atharva-satpute <55058959+atharva-satpute@users.noreply.github.com> * Update test/python/providers/fake_provider/test_fake_generic.py Co-authored-by: atharva-satpute <55058959+atharva-satpute@users.noreply.github.com> * Update test/python/providers/fake_provider/test_fake_generic.py Co-authored-by: atharva-satpute <55058959+atharva-satpute@users.noreply.github.com> * Fix some tests * Add calibration schedules, fix transpiler tests * Fix lint * Refactor, add pulse functionality * Latest updates to FakeGeneric * Fix some unit tests * Fix some unit tests * Fix tests, lint, refactor * Remove unused inputs * Make calibrations optional * Attempt to speed up test: only add calibrations if option enabled * Revert some tests to V1 * Refactor FakeGeneric * Update unit test * Rename supported instructions to operations, fix tests Fix test seed Fix unit test, lint * Restore vf2postlayout test to V1 Fx vf2 test * Add pulse test to validate pulse capabilities of new fake backend Update fake generic * Update docs, fix lint * Avoid set for basis gates to allow reproducibility in the error/duration value generation * Update calibrations * Fix transpiler test * Add run test to confirm noise defaults * Add CZ to basis gates, dtm, update backend names, fix docs * Remove GenericTarget, add default for basis_gates, remove supported_operations. * Apply review comments, modify calibrate_instructions to avoid public calibration method. * New name proposal * Fix lint and test * Fix comment * Apply Kevin's suggestions to extract defaults from class * Make defaults private * Fix lint * Revert previous 3 comments. * Privatize GenericFakeBackend * Remove from docs * Revert privatization * Apply review comments * Add reno * Fix lint * Apply suggestions from Matt's code review Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * Apply comments from code review * Fix lint * Rename to GenericBackendV2 and adjust docs. * Fix lint * Apply comments from code review * It's not 2023 anymore * Fix conflict * Fix test conflict. --------- Co-authored-by: atharva-satpute <55058959+atharva-satpute@users.noreply.github.com> Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com> Co-authored-by: Elena Peña Tapia <epenatap@gmail.com> Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: Kevin Hartman <kevin@hart.mn> (cherry picked from commit b4582a9) # Conflicts: # qiskit/providers/fake_provider/__init__.py # test/python/compiler/test_transpiler.py
- Loading branch information