forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding an option to CouplingMap.reduce to allow disconnected coupling…
… maps (Qiskit#10863) * adding an option to CouplingMap.reduce to allow disconnected coupling maps * missing 'not'
- Loading branch information
1 parent
e62c86b
commit 01bb111
Showing
3 changed files
with
35 additions
and
16 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
9 changes: 9 additions & 0 deletions
9
releasenotes/notes/extend-coupling-map-reduce-bb19e35ec939570d.yaml
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: | ||
- | | ||
The method :meth:`~qiskit.transpiler.CouplingMap.reduce` now accepts an | ||
additional argument ``check_if_connected``, defaulted to ``True``. This | ||
corresponds to the previous behavior, checking whether the reduced coupling | ||
map remains connected and raising a ``CouplingError`` if not so. When set to | ||
``False``, the check is skipped, allowing disconnected reduced coupling maps. | ||
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