Repository navigation
Replace the deprecated transpiled_circuit metrics with get_transpiled_circuit_metrics - #1787
Open
classiqdor wants to merge 2 commits into
Open
classiqdor wants to merge 2 commits into
classiqdor wants to merge 2 commits into
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
| @@ -541,8 +541,9 @@ | |||
| "source": [ | |||
Member
There was a problem hiding this comment.
…_circuit_metrics Reading depth and count_ops from quantum_program.transpiled_circuit is deprecated; get_transpiled_circuit_metrics(quantum_program) returns both. Likewise, transpiled_circuit.qasm is replaced with export(qprog, TargetLanguage.QASM3, transpilation_config=True), which returns the same QASM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
classiqdor
force-pushed
the
fix_deprecation_transpiled_circuit
branch
from
November 19, 2026 15:28
3304a59 to
8f0d86f
Compare
Also stops excluding #1787's notebooks from the deprecation-outputs check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Reading
depth/count_opsfromquantum_program.transpiled_circuitis deprecated.get_transpiled_circuit_metrics(quantum_program)returns both. Where a cell reads both values, it calls this once (circuit_metrics = ...).transpiled_circuit.qasm(inresiliency_planning_AMD) is deprecated too. It's replaced withexport(qprog, TargetLanguage.QASM3, transpilation_config=True), which I checked returns the same QASM.Outputs:
qaoa_demonstration,ND_Laplacian_BE,select_structures_BE,stateprep_guassian_using_qsvt, and the 3 iQuHack notebooks.resiliency_planning_AMD,quantum_walks_via_efficient_blockencoding, and both advection notebooks. Their saved outputs still show the old warning until their next re-run.gradient_estimation_helpers.pyprints the metrics only withprint_circuit_info=True, which no notebook passes, so no outputs change.Unrelated warnings that remain in the re-run outputs (to be handled separately):
stateprep_guassian_using_qsvt: "non-zero auxiliary amplitudes" at probability 1.7e-5 (it was already there)classiq_iQuHack_2025_final_sol: the same warning, at probability 2.7%. It's new, since the previous outputs were generated with an SDK that didn't report it.🤖 Generated with Claude Code