-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Defaults in TranspileConfig (now called PassManagerConfig) #3035
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
87 commits
Select commit
Hold shift + click to select a range
efd1aa8
TranspileConfig defaults
1ucian0 4527a17
defatuls for TranspileConfig
1ucian0 76befce
Merge branch 'master' into defaults_TranspileConfig
1ucian0 e95a102
explicit kwargs
1ucian0 75ca2cd
remove __getattr__ None
1ucian0 ca3e1d2
move cm checks to _parse_coupling_map
1ucian0 ba39d87
transpile_config as a dict
1ucian0 203280f
pass manager config
1ucian0 eccfd27
circuit is yet another transpiler param
1ucian0 ea8d6a2
TranspileConfigSchema -> PassManagerConfigSchema
1ucian0 cc393d1
removing unsed parameters in PassManagerConfig
1ucian0 24ce889
no need for _transpile_circuit anymore
1ucian0 fc488b8
pass manager callback at construction time
1ucian0 44677ce
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 b5ee757
docstring
1ucian0 01de59b
changelog
1ucian0 fe54db6
deprecate callback from construction time
1ucian0 26b379e
_parse_output_name creates Nones instead of circuit.name
1ucian0 4aeb87e
transpile_config -> transpile_args
1ucian0 117d813
merge
1ucian0 948b3d4
CouplingMap(backend.configuration().coupling_map)
1ucian0 a909c5f
reformat
1ucian0 83a79d1
merge
1ucian0 2f1e60e
Merge branch 'master' into defaults_TranspileConfig
1ucian0 23d1742
merge
1ucian0 26d19e2
Merge branch 'master' into defaults_TranspileConfig
1ucian0 73b21c2
fixing test/python/transpiler/test_passmanager_run.py
1ucian0 bbb1c45
run(..., output_name=None, callback=None)
1ucian0 142e298
basis
1ucian0 321b906
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 4c98cc5
kwargs
1ucian0 38f7c56
transpile_args[pass_manager_config].basis_gates
1ucian0 af9a914
callback at run time
1ucian0 5627f46
lint
1ucian0 1ad6b25
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 1c91111
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 6b0b4be
release note
1ucian0 cc7ddc1
Merge branch 'master' into defaults_TranspileConfig
mergify[bot] 187a58e
Merge branch 'master' into defaults_TranspileConfig
mergify[bot] d261510
Merge branch 'master' into defaults_TranspileConfig
mergify[bot] d4af0f8
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 3037240
Merge branch 'master' into defaults_TranspileConfig
1ucian0 2a99885
Merge branch 'master' into defaults_TranspileConfig
mergify[bot] 009238d
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 ad5bb3a
docstring
1ucian0 b21e0b3
other -> upgrade
1ucian0 70aaf6c
release note
1ucian0 6dbac3b
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 8c5faba
Merge branch 'master' into defaults_TranspileConfig
1ucian0 a3582cc
Merge branch 'master' into defaults_TranspileConfig
1ucian0 1efe02f
Merge branch 'master' into defaults_TranspileConfig
kdk 58ecc5d
Merge branch 'master' into defaults_TranspileConfig
1ucian0 dacb8be
style
1ucian0 5ae9f13
fix
1ucian0 a0b1755
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 0c13b16
line too long
1ucian0 cf28d29
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 571375f
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 09d0c90
reverse the changes in about parallel
1ucian0 9ec8679
rollback transpile_circuit
1ucian0 095c0cc
lint
1ucian0 34aec1e
release note
1ucian0 a31a190
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 be7314a
merge
1ucian0 66d838a
expanding the parameters
1ucian0 63e3e68
remove optimization level
1ucian0 078979a
remove pass_manager_config as a transpile_circuit arg
1ucian0 570c1f1
output_name and callback are optional
1ucian0 15f4dd4
Update qiskit/compiler/transpile.py
1ucian0 fa007a0
documentation
1ucian0 6ed9677
parse callback
1ucian0 7ec5ceb
remove circuit from transpile_args
1ucian0 08b68ea
Update qiskit/transpiler/transpile_circuit.py
1ucian0 4c87790
rename transpile_args_circuits to list_transpile_args.append
1ucian0 cef86d3
conflict
1ucian0 c50cf29
Merge branch 'defaults_TranspileConfig' of github.com:1ucian0/qiskit-…
1ucian0 7d811ef
new path for passes
1ucian0 b57b28d
merge
1ucian0 e1d7f10
back to old _parse_coupling_map
1ucian0 7ad1521
undoing _parse_output_name
1ucian0 b84e270
comments on the transpiler configuration
1ucian0 346b8ea
docstring
1ucian0 edc9184
Merge branch 'master' into defaults_TranspileConfig
1ucian0 ce06242
Merge branch 'master' of github.com:Qiskit/qiskit-terra into defaults…
1ucian0 1c219ed
Merge branch 'defaults_TranspileConfig' of github.com:1ucian0/qiskit-…
1ucian0 8d935be
remove transpile_circuit
1ucian0 a9e6825
Merge branch 'master' into defaults_TranspileConfig
1ucian0 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,49 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| # This code is part of Qiskit. | ||
| # | ||
| # (C) Copyright IBM 2017, 2019. | ||
| # | ||
| # This code is licensed under the Apache License, Version 2.0. You may | ||
| # obtain a copy of this license in the LICENSE.txt file in the root directory | ||
| # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
| # | ||
| # Any modifications or derivative works of this code must retain this | ||
| # copyright notice, and modified files need to carry a notice indicating | ||
| # that they have been altered from the originals. | ||
|
|
||
| """Models for PassManagerConfig and its related components.""" | ||
|
|
||
| from qiskit.transpiler.models import PassManagerConfigSchema | ||
| from qiskit.validation import BaseModel, bind_schema | ||
|
|
||
|
|
||
| @bind_schema(PassManagerConfigSchema) | ||
| class PassManagerConfig(BaseModel): | ||
| """Model for PassManagerConfig. | ||
|
|
||
| Please note that this class only describes the required fields. For the | ||
| full description of the model, please check ``PassManagerConfigSchema``. | ||
|
|
||
| Attributes: | ||
| initial_layout (Layout): Initial position of virtual qubits on physical qubits. | ||
| basis_gates (list): List of basis gate names to unroll to. | ||
| coupling_map (CouplingMap): Directed graph represented a coupling map. | ||
| backend_properties (BackendProperties): Properties returned by a backend, including | ||
| information on gate errors, readout errors, qubit coherence times, etc. | ||
| seed_transpiler (int): Sets random seed for the stochastic parts of the transpiler. | ||
| """ | ||
|
|
||
| def __init__(self, | ||
| initial_layout=None, | ||
| basis_gates=None, | ||
| coupling_map=None, | ||
| backend_properties=None, | ||
| seed_transpiler=None, | ||
| **kwargs): | ||
| super().__init__(initial_layout=initial_layout, | ||
| basis_gates=basis_gates, | ||
| coupling_map=coupling_map, | ||
| backend_properties=backend_properties, | ||
| seed_transpiler=seed_transpiler, | ||
| **kwargs) |
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.