Migrate/new execution interface d 3 - #1651
Open
nathan-classiq wants to merge 11 commits into
Open
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the two hand-rolled `estimate_cost` COBYLA loops with `ExecutionSession.variational_minimize` so the notebook follows the new execution API while preserving the existing sampling-based analysis flow. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the hand-rolled `estimate_cost` COBYLA loop with `ExecutionSession.variational_minimize` so this notebook follows the new execution API while keeping its sampling and validity-analysis workflow unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace `estimate_cost` optimizer loops with `ExecutionSession.variational_minimize` and switch gradient estimation from deprecated `estimate` to `observe`, keeping the notebook’s iterative ADAPT structure intact. Co-authored-by: Cursor <cursoragent@cursor.com>
This replaces ExecutionSession estimate/sample calls with classiq.execution.functions.sample and computes objective values from parsed shot counts to align with the new execution interface. Co-authored-by: Cursor <cursoragent@cursor.com>
This removes ExecutionSession estimate/sample usage and evaluates objective values from weighted parsed shot counts using classiq.execution.functions.sample for new-interface compatibility. Co-authored-by: Cursor <cursoragent@cursor.com>
…ace. This replaces ExecutionSession estimate and sample flows with classiq.execution.functions.sample and observe while preserving the optimizer and gradient loop behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
nathan-classiq
force-pushed
the
migrate/new-execution-interface-d-3
branch
from
July 8, 2026 08:08
f31be43 to
4d6df69
Compare
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.
PR Description
Some notes
Please make sure that the notebook runs successfully with the latest Classiq version.
Please make sure that you placed the files in an appropriate folder
.ipynband.qmodto be unique across this repository..qmod,.synthesis_options.json,.metadata.jsonIf applicable, please include link to the paper on which the notebook is based, in the notebook itself.
Please use
rebaseon your branch (no merge commits)Please link this PR to the relevant issue
Please make sure to run
pre-commitwhen commiting changesgitin the terminal, make sure to installpre-commitvia runningpip install pre-commitfollowed bypre-commit installpre-commitdocumentationpre-commit.pre-commitmay minorly alter some files. Make sure togit addthe changes done bypre-commit