Struct qcs::qvm::http::MultishotRequest
source · pub struct MultishotRequest {
pub compiled_quil: String,
pub addresses: HashMap<String, AddressRequest>,
pub trials: NonZeroU16,
pub measurement_noise: Option<(f64, f64, f64)>,
pub gate_noise: Option<(f64, f64, f64)>,
pub rng_seed: Option<i64>,
/* private fields */
}Expand description
The request body needed to make a multishot [run] request to the QVM.
Fields§
§compiled_quil: StringThe Quil program to run.
addresses: HashMap<String, AddressRequest>The memory regions to include in the response.
trials: NonZeroU16The number of trials (“shots”) to run.
measurement_noise: Option<(f64, f64, f64)>Simulated measurement noise for the X, Y, and Z axes.
gate_noise: Option<(f64, f64, f64)>Simulated gate noise for the X, Y, and Z axes.
rng_seed: Option<i64>An optional seed for the random number generator.
Implementations§
Trait Implementations§
source§impl Clone for MultishotRequest
impl Clone for MultishotRequest
source§fn clone(&self) -> MultishotRequest
fn clone(&self) -> MultishotRequest
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 MultishotRequest
impl Debug for MultishotRequest
source§impl PartialEq for MultishotRequest
impl PartialEq for MultishotRequest
source§fn eq(&self, other: &MultishotRequest) -> bool
fn eq(&self, other: &MultishotRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MultishotRequest
impl Serialize for MultishotRequest
impl StructuralPartialEq for MultishotRequest
Auto Trait Implementations§
impl RefUnwindSafe for MultishotRequest
impl Send for MultishotRequest
impl Sync for MultishotRequest
impl Unpin for MultishotRequest
impl UnwindSafe for MultishotRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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