-
Notifications
You must be signed in to change notification settings - Fork 631
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
[Capture] Switch from binding qnode_kwargs
to execution_config
#6991
Conversation
…yLaneAI/pennylane into qnode-prim-execution-config
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.
Should this PR also update DefaultQubitInterpreter
to accept ExecutionConfig
? It's not really used for anything inside the device yet, so I'm okay with doing it in #6961 as well.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6991 +/- ##
==========================================
- Coverage 99.59% 99.59% -0.01%
==========================================
Files 483 483
Lines 46069 46066 -3
==========================================
- Hits 45884 45881 -3
Misses 185 185 ☔ View full report in Codecov by Sentry. |
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! 🚀
Blocked by PennyLaneAI/pennylane-lightning#1067 Will merge once that goes in. |
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.
🚀
**Context:** In PennyLaneAI/pennylane#6991 we are adding an `execution_config` kwarg to `Device.eval_jaxpr`. We need to make sure this change doesn't break lightning. **Description of the Change:** Adds an `execution_config : Optional[ExecutionConfig] = None` keyword argument to `Device.eval_jaxpr`. **Benefits:** Lightning won't break when that change gets merged into pennylane. The lightning device jaxpr execution can be configured in the future. **Possible Drawbacks:** **Related GitHub Issues:** [sc-84916] --------- Co-authored-by: ringo-but-quantum <[email protected]> Co-authored-by: Amintor Dusko <[email protected]>
Co-authored-by: Pietropaolo Frisoni <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
**Context:** In PennyLaneAI/pennylane#6991 we are adding an `execution_config` kwarg to `Device.eval_jaxpr`. We need to make sure this change doesn't break lightning. **Description of the Change:** Adds an `execution_config : Optional[ExecutionConfig] = None` keyword argument to `Device.eval_jaxpr`. **Benefits:** Lightning won't break when that change gets merged into pennylane. The lightning device jaxpr execution can be configured in the future. **Possible Drawbacks:** **Related GitHub Issues:** [sc-84916] --------- Co-authored-by: ringo-but-quantum <[email protected]> Co-authored-by: Amintor Dusko <[email protected]>
**Context:** In [pennylane PR #6991](PennyLaneAI/pennylane#6991) we switched from binding a `qnode_kwargs` to an `execution_config` with `qnode_prim`. **Description of the Change:** Update the call siganture for `qnode_prim`. **Benefits:** Consistency with catalyst and pennylane. **Possible Drawbacks:** **Related GitHub Issues:** --------- Co-authored-by: erick-xanadu <[email protected]>
Context:
As the capture workflow is getting more complicated, we should start using the well-defined
ExecutionConfig
object instead of the ambiguous and unspecifiedqnode_kwargs
.We also need to start passing the
execution_config
to the device, as that information is needed for handling mid circuit measurements.Description of the Change:
Switches from binding a
qnode_kwargs
dictionary to anexecution_config
object.Benefits:
Easier to manage the configuration of a workflow. Can specify MCM configuration info for device execution.
Possible Drawbacks:
Technically a breaking change, but a breaking change to an experimental project.
Related GitHub Issues:
[sc-84916]