pub struct BatchOutcome {
pub records: Vec<MeasureResult>,
pub expectation_values: Vec<f64>,
pub max_rank: usize,
}Expand description
What one TableauSimulator::apply_batch run produced.
Fields§
§records: Vec<MeasureResult>Measurement, explicit-record, and herald records in batch order.
expectation_values: Vec<f64>One entry per Instruction::Expectation, in batch order.
max_rank: usizeHighest stabilizer rank observed after any instruction, or 0 for an
empty batch. Callers that budget memory against the rank need the peak,
which a post-batch TableauSimulator::rank read would miss — a Pauli
rotation can grow the rank before a later measurement collapses it.
Trait Implementations§
Source§impl Clone for BatchOutcome
impl Clone for BatchOutcome
Source§fn clone(&self) -> BatchOutcome
fn clone(&self) -> BatchOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BatchOutcome
impl Debug for BatchOutcome
Source§impl Default for BatchOutcome
impl Default for BatchOutcome
Source§fn default() -> BatchOutcome
fn default() -> BatchOutcome
Returns the “default value” for a type. Read more
Source§impl PartialEq for BatchOutcome
impl PartialEq for BatchOutcome
impl StructuralPartialEq for BatchOutcome
Auto Trait Implementations§
impl Freeze for BatchOutcome
impl RefUnwindSafe for BatchOutcome
impl Send for BatchOutcome
impl Sync for BatchOutcome
impl Unpin for BatchOutcome
impl UnsafeUnpin for BatchOutcome
impl UnwindSafe for BatchOutcome
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