pub struct Simulate<'c, SeedState> { /* private fields */ }Expand description
Builder for query-aware simulation requests.
Implementations§
Source§impl<'c, SeedState> Simulate<'c, SeedState>
impl<'c, SeedState> Simulate<'c, SeedState>
pub fn backend(self, kind: BackendKind) -> Self
pub fn noise(self, model: &'c NoiseModel) -> Self
Source§impl<'c> Simulate<'c, Seeded>
impl<'c> Simulate<'c, Seeded>
pub fn run(self) -> Result<RunOutcome>
pub fn shots(self, num_shots: usize) -> Result<ShotsResult>
pub fn sample_counts(self, num_shots: usize) -> Result<CountsResult>
pub fn marginals(self) -> Result<MarginalsResult>
Auto Trait Implementations§
impl<'c, SeedState> Freeze for Simulate<'c, SeedState>where
SeedState: Freeze,
impl<'c, SeedState> RefUnwindSafe for Simulate<'c, SeedState>where
SeedState: RefUnwindSafe,
impl<'c, SeedState> Send for Simulate<'c, SeedState>where
SeedState: Send,
impl<'c, SeedState> Sync for Simulate<'c, SeedState>where
SeedState: Sync,
impl<'c, SeedState> Unpin for Simulate<'c, SeedState>where
SeedState: Unpin,
impl<'c, SeedState> UnsafeUnpin for Simulate<'c, SeedState>where
SeedState: UnsafeUnpin,
impl<'c, SeedState> UnwindSafe for Simulate<'c, SeedState>where
SeedState: UnwindSafe,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more