Struct qcs::qpu::api::ExecutionOptions
source · pub struct ExecutionOptions { /* private fields */ }
Expand description
Options avaialable when executing a job on a QPU.
Use Default
to get a reasonable set of defaults, or start with ExecutionOptionsBuilder
to build a custom set of options.
Implementations§
source§impl ExecutionOptions
impl ExecutionOptions
sourcepub fn builder() -> ExecutionOptionsBuilder
pub fn builder() -> ExecutionOptionsBuilder
Get an ExecutionOptionsBuilder
that can be used to build a custom ExecutionOptions
.
sourcepub fn connection_strategy(&self) -> &ConnectionStrategy
pub fn connection_strategy(&self) -> &ConnectionStrategy
Get the ConnectionStrategy
.
sourcepub fn api_options(&self) -> Option<&InnerApiExecutionOptions>
pub fn api_options(&self) -> Option<&InnerApiExecutionOptions>
Get the ApiExecutionOptions
.
source§impl ExecutionOptions
impl ExecutionOptions
Methods that help select and configure a controller service client given a set of
ExecutionOptions
and QPU ID.
sourcepub async fn get_controller_client(
&self,
client: &Qcs,
quantum_processor_id: Option<&str>
) -> Result<ControllerClient<GrpcConnection>, QpuApiError>
pub async fn get_controller_client( &self, client: &Qcs, quantum_processor_id: Option<&str> ) -> Result<ControllerClient<GrpcConnection>, QpuApiError>
Get a controller client for the given QPU ID.
sourcepub async fn get_qpu_grpc_connection(
&self,
client: &Qcs,
quantum_processor_id: Option<&str>
) -> Result<GrpcConnection, QpuApiError>
pub async fn get_qpu_grpc_connection( &self, client: &Qcs, quantum_processor_id: Option<&str> ) -> Result<GrpcConnection, QpuApiError>
Get a GRPC connection to a QPU, without specifying the API to use.
Trait Implementations§
source§impl Clone for ExecutionOptions
impl Clone for ExecutionOptions
source§fn clone(&self) -> ExecutionOptions
fn clone(&self) -> ExecutionOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExecutionOptions
impl Debug for ExecutionOptions
source§impl Default for ExecutionOptions
impl Default for ExecutionOptions
source§fn default() -> ExecutionOptions
fn default() -> ExecutionOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for ExecutionOptions
impl PartialEq for ExecutionOptions
source§fn eq(&self, other: &ExecutionOptions) -> bool
fn eq(&self, other: &ExecutionOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExecutionOptions
impl StructuralPartialEq for ExecutionOptions
Auto Trait Implementations§
impl Freeze for ExecutionOptions
impl RefUnwindSafe for ExecutionOptions
impl Send for ExecutionOptions
impl Sync for ExecutionOptions
impl Unpin for ExecutionOptions
impl UnwindSafe for ExecutionOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request