Update transpilation optimizations with SABRE tutorial to new template#4970
Open
henryzou50 wants to merge 2 commits intoQiskit:mainfrom
Open
Update transpilation optimizations with SABRE tutorial to new template#4970henryzou50 wants to merge 2 commits intoQiskit:mainfrom
henryzou50 wants to merge 2 commits intoQiskit:mainfrom
Conversation
Restructure the tutorial to match the standard template format with learning outcomes, prerequisites, and the four-step Qiskit patterns workflow. Key changes: - Remove qiskit_serverless content (runtime performance issues, will revisit separately) - Add small-scale simulator section using qiskit_aer with noise model from real backend, running 10 trials with error bars for statistical reliability - Add large-scale hardware section comparing basic, decay, and lookahead SABRE heuristics across multiple seeds - Improve plots with percentage annotations, value labels, and side-by-side fidelity bar charts - Use consistent "2Q depth" labeling throughout - Add analysis commentary connecting transpilation quality to execution fidelity - Update requirements to Qiskit SDK v2.0+ and add qiskit-aer - Add next steps with links to custom transpiler pass, transpiler plugins, and DAG representation guides - Ran tox -e fix
Contributor
|
One or more of the following people are relevant to this code:
|
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Revised
transpilation-optimizations-with-sabre.ipynbto follow the Tutorial_Template structure, splitting the tutorial into a small-scale simulator walkthrough and a large-scale hardware comparison of SABRE routing heuristics.Key changes from the old notebook:
qiskit_serverlessandqiskit-ibm-catalogfor Part II. The revised version runs everything locally using standard Qiskit transpiler APIsqiskit_aerwith a real backend noise model to measure execution fidelity across threeSabreLayoutconfigurations, demonstrating how parameter tuning affects actual expectation valuesbasic,decay, andlookaheadrouting heuristics on real hardware, replacing the old serverless-based approachibm_bostontoleast_busy()Tutorial structure:
SabreLayoutparameters (layout_trials,swap_trials,max_iterations), transpile a star-topology GHZ circuit, and validate fidelity improvements with an Aer noise modelbasic,decay,lookahead) at scale on real hardware with execution and analysis