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.
Deprecate the BIPMapping transpiler pass in favor of external plugin (Q…
…iskit#9924) * Deprecate the BIPMapping transpiler pass in favor of external plugin This commit deprecates the BIPMapping transpiler pass. Since its introduction the pass has been in a weird state since it's introduction. It is a standalone transpiler pass that we never integrated it into transpile() because it has an external dependency on cplex which is a proprietary software package that most people don't have access too. With the introduction of the transpiler stage plugin interface the pass has been turned into an external package: https://github.com/qiskit-community/qiskit-bip-mapper By using the plugin interface the pass can now be cleanly integrates into the transpile() function and also makes the requirement to have cplex installed much more explicit. For users with cplex it's much easier to run the BIPMapping pass as part of a transpilation workflow with `transpile(..., routing_method="bip")`. Closes Qiskit#8662 * Catch deprecation warnings in tests * Fix lint
- Loading branch information
1 parent
0c700ea
commit 1da614b
Showing
4 changed files
with
68 additions
and
24 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
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/deprecate-bip-mapping-f0025c4c724e1ec8.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,14 @@ | ||
--- | ||
deprecations: | ||
- | | ||
The transpiler routing pass, :class:`~.BIPMapping` has been deprecated | ||
and will be removed in a future release. It has been replaced by an external | ||
plugin package: ``qiskit-bip-mapper``. Details for this new package can | ||
be found at the package's github repository: | ||
https://github.com/qiskit-community/qiskit-bip-mapper | ||
The pass was made into a separate plugin package for two reasons, first | ||
the dependency on CPLEX makes it harder to use and secondly the plugin | ||
packge more cleanly integrates with :func:`~.transpile`. | ||
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