-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for backends with defective qubits and gates (#4782)
* initial commit * faulty qubit insertion * operational False * pruned coupling map * no gate operation parameter for now * faulty gate * fake_ourense_faulty_cx13 * testing of the fake backends * a test * disconnected coupling map * add fault register at the end * transform the circuit into the faulty backend * simulators do not have properties * assertIdleQ1 * assertEqualCount * remove faulty qubtis from properties * backend_property for faulty qubits * adapt Layout2qDistance to disconnected coupling map * remove _create_qreg * assuming coupling map * layout with disconnected qubits * test for faulty gate * support for faulty gate * remove gates when they are faulty from the backend properties * test * unused import * new fault backend * test * take the largest connected component * lint * adjust test * lint * lint1 * lint2 * lint3 * lint4 * lint5 * _parse_initial_layout * initial layot support * TestFaultyCX13 * more testing * cm -> context * Update qiskit/providers/models/backendproperties.py Co-authored-by: Ali Javadi-Abhari <[email protected]> * Apply suggestions from code review Co-authored-by: Ali Javadi-Abhari <[email protected]> * mv qiskit/test/mock/backends/ourense/fake_ourense_faulty* to test/python/providers/faulty_backends.py * cleaning up * lint * moving faulty_qubits and faulty_gates to properties * another fix * lint * defective qubtis per circuit * docstring * linting * test added * docstring * reno * Update releasenotes/notes/defective_qubits-d826ccbd049603b9.yaml Co-authored-by: Ali Javadi-Abhari <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Matthew Treinish <[email protected]>
- Loading branch information
1 parent
444a3be
commit a67440a
Showing
10 changed files
with
669 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
features: | ||
- | | ||
Support was added to the :func:`qiskit.compiler.transpile` function for handling backends that have qubits or | ||
gates marked as defective in their :class:`~qiskit.providers.models.BackendProperties`. If a gate or qubit | ||
parameter in the :class:`~qiskit.providers.models.BackendProperties` has an ``operational`` field and it | ||
is set to ``False``, then the :func:`~qiskit.compiler.transpile` function will consider the maximum connected | ||
subgraph of operational qubits as a coupling map and handle the process to avoid using non-operational | ||
qubits/gates. |
Oops, something went wrong.