-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Defaults in TranspileConfig (now called PassManagerConfig) #3035
Merged
Conversation
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
1ucian0
requested review from
ajavadia,
atilag,
chriseclectic,
delapuente,
diego-plan9,
ewinston,
jaygambetta,
kdk,
lcapelluto,
mtreinish,
nonhermitian and
taalexander
as code owners
August 23, 2019 13:16
ajavadia
reviewed
Sep 4, 2019
1ucian0
changed the title
Defaults in TranspileConfig
Defaults in TranspileConfig (now called PassManagerConfig)
Sep 8, 2019
ajavadia
reviewed
Jan 23, 2020
…terra into defaults_TranspileConfig
ajavadia
approved these changes
Feb 5, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me but am thinking it's better to merge after release to minimize risk due to API changes.
I agree with @ajavadia lets make this an early merge for the 0.13.0 cycle. I'm updating the milestone accordingly. |
Removing |
faisaldebouni
pushed a commit
to faisaldebouni/qiskit-terra
that referenced
this pull request
Aug 5, 2020
* TranspileConfig defaults * defatuls for TranspileConfig * explicit kwargs * remove __getattr__ None * move cm checks to _parse_coupling_map * transpile_config as a dict * pass manager config * circuit is yet another transpiler param * TranspileConfigSchema -> PassManagerConfigSchema * removing unsed parameters in PassManagerConfig * no need for _transpile_circuit anymore * pass manager callback at construction time * docstring * changelog * deprecate callback from construction time * _parse_output_name creates Nones instead of circuit.name * transpile_config -> transpile_args * CouplingMap(backend.configuration().coupling_map) * reformat * fixing test/python/transpiler/test_passmanager_run.py * run(..., output_name=None, callback=None) * basis * kwargs * transpile_args[pass_manager_config].basis_gates * callback at run time * lint * release note * docstring * other -> upgrade * release note * style * fix * line too long * reverse the changes in about parallel * rollback transpile_circuit * lint * release note * expanding the parameters * remove optimization level * remove pass_manager_config as a transpile_circuit arg * output_name and callback are optional * Update qiskit/compiler/transpile.py Co-Authored-By: Ali Javadi-Abhari <[email protected]> * documentation * parse callback * remove circuit from transpile_args * Update qiskit/transpiler/transpile_circuit.py Co-Authored-By: Ali Javadi-Abhari <[email protected]> * rename transpile_args_circuits to list_transpile_args.append * new path for passes * back to old _parse_coupling_map * undoing _parse_output_name * comments on the transpiler configuration * docstring * remove transpile_circuit Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Kevin Krsulich <[email protected]> Co-authored-by: Ali Javadi-Abhari <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Changelog: API Change
Include in the "Changed" section of the changelog
Changelog: Deprecation
Include in "Deprecated" section of changelog
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.
While write the release notes for #3004, I realized editing a preset passmanager is a real use-case. That requires a more user-friendly
TranspileConfig
. For example, it needs good defaults.If I understand correctly this use-case, a user should be able to instantiate a preset pass manager doing something like this:
If the
level_0_pass_manager
parameter is not optional, thenTranspileConfig()
should be a thing. This PR allows it.