documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Primitives: New "mode" argument

Open ptristan3 opened this issue 1 year ago • 4 comments

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 backend and session arguments for Sampler and Estimator.

  • Stop supporting a backend name (string) as a valid execution mode.

  • A new mode argument for the Sampler and Estimator execution modes. The mode can be a Backend, Session, Batch, or None.

  • [x] Update the code examples, switching to mode parameter 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

ptristan3 avatar Apr 05 '24 19:04 ptristan3

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.

abbycross avatar May 02 '24 18:05 abbycross

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!

beckykd avatar Jul 23 '24 19:07 beckykd

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.

ptristan3 avatar Jul 23 '24 22:07 ptristan3

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!

beckykd avatar Jul 24 '24 17:07 beckykd

Curious if this issue still in progress?

abbycross avatar Oct 08 '24 15:10 abbycross

I'm closing because the mode parameter is already included in the documentation.

ptristan3 avatar Oct 09 '24 15:10 ptristan3