Primitives: New "mode" argument
URL, if applicable
No response
Describe the new content you are requesting.
We are consolidating the execution modes concept for primitives including a single parameter "mode". The incoming release will include the following:
-
Deprecation of
backendandsessionarguments for Sampler and Estimator. -
Stop supporting a backend name (string) as a valid execution mode.
-
A new
modeargument for the Sampler and Estimator execution modes. Themodecan be a Backend, Session, Batch, or None. -
[x] Update the code examples, switching to
modeparameter instead of backend and/or session. -
[ ] If there is some code example using a backend name, replace it with a backend object.
If this new content request is accepted, do you want to write the content?
I can help the team by providing enough information to write the material
Thanks @ptristan3 for opening this issue! What is the timeline for this content - are you ready to open a PR? Let me know how we can support, and what page(s) will host the new content.
Hi @ptristan3 , I think this work is done, however, I'm not sure what this refers to:
If there is some code example using a backend name, replace it with a backend object.
Could you please give me a before and after example so I can verify our code and update as needed? Thanks!
Hi @ptristan3 , I think this work is done, however, I'm not sure what this refers to:
If there is some code example using a backend name, replace it with a backend object.
Could you please give me a before and after example so I can verify our code and update as needed? Thanks!
Sorry, I meant If there is some code example using a backend name, replace it with a backend instance.
Sorry, I meant If there is some code example using a backend name, replace it with a backend instance.
Could you give us before/after code examples? Thanks!
Curious if this issue still in progress?
I'm closing because the mode parameter is already included in the documentation.