-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Adding coupling-map and target to HighLevelSynthesis
#10477
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
04ef67c
extending HighLevelSynthesis and HighLevelSynthesisPlugin interface w…
alexanderivrii e4fad1a
improving docstrings and adjusting arguments to implemented plugins
alexanderivrii ac901a9
adding test that the coupling map gets passed correctly
alexanderivrii 11a501f
Merge branch 'main' into hls-with-target
alexanderivrii 8d224b2
release notes
alexanderivrii 29611eb
docs
alexanderivrii b1f191f
Merge branch 'main' into hls-with-target
alexanderivrii 11f9236
using DAGCircuit's find_bit
alexanderivrii 3ded40c
removing debug print
alexanderivrii 54bd00b
updating plugin interface docs
alexanderivrii 5a1365a
improvements to release notes
alexanderivrii 5d85f9c
removing unused variable
alexanderivrii e3211fb
adding use_qubit_indices; updating release notes and tests
alexanderivrii 6d3f1c4
Merge branch 'main' into hls-with-target
alexanderivrii 5044ec0
Update qiskit/transpiler/passes/synthesis/plugin.py
alexanderivrii b665af7
Update qiskit/transpiler/passes/synthesis/plugin.py
alexanderivrii 5111afa
Update qiskit/transpiler/preset_passmanagers/common.py
alexanderivrii 3b77b6b
Update qiskit/transpiler/preset_passmanagers/common.py
alexanderivrii 5a159e3
Update qiskit/transpiler/preset_passmanagers/common.py
alexanderivrii af27ba8
Update qiskit/transpiler/preset_passmanagers/common.py
mtreinish 9a70e46
Merge branch 'main' into hls-with-target
alexanderivrii a84cd62
setting coupling_map to None
alexanderivrii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,28 @@ | ||
| --- | ||
| features: | ||
| - | | ||
| Added the arguments ``coupling_map``, ``target`` and ``use_qubit_indices`` to | ||
| :class:`.HighLevelSynthesis` transpiler pass. The argument ``target`` specifies | ||
| the target backend, allowing the synthesis plugins called within the pass to | ||
| access all target-specific information, such as the coupling map and the supported | ||
| gate set. The argument ``coupling_map`` only specifies the coupling map, and is only | ||
| used when ``target`` is not specified. The argument ``use_qubit_indices`` indicates | ||
| whether the high-level-synthesis pass is running before or after the layout is set, | ||
| that is, whether the qubit indices of higher-level-objects correspond to qubit indices | ||
| on the target backend. | ||
| - | | ||
| Added the arguments ``coupling_map``, ``target`` and ``qubits`` to :class:`.HighLevelSynthesisPlugin`. | ||
| The positional argument ``target`` specifies the target backend, allowing the plugin | ||
| to access all target-specific information, | ||
| such as the coupling map, the supported gate set, and so on. The positional argument | ||
| ``coupling_map`` only specifies the coupling map, and is only used when ``target`` | ||
| is not specified. | ||
| The positional argument ``qubits`` specifies the list of qubits over which the | ||
| higher-level-object is defined, in case the synthesis is done on the physical circuit. | ||
| The value of ``None`` indicates that the layout has not yet been chosen. | ||
|
|
||
| This enables a cleaner separation of synthesis plugins options into general interface options | ||
| for plugins (that is, ``coupling_map``, ``target``, and ``qubits``) and into plugin-specific options | ||
| (a free form configuration dictionary specified via ``options``). It is worthwhile to note that this | ||
| change is backward-compatible, if the options ``coupling_map``, etc. are not explicitly added to | ||
| the plugin's ``run()`` method, they will appear as part of ``options``. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.