pub struct CompiledSampler { /* private fields */ }Implementations§
Source§impl CompiledSampler
impl CompiledSampler
pub fn rank(&self) -> usize
pub fn num_measurements(&self) -> usize
pub fn sparse(&self) -> Option<&SparseParity>
pub fn parity_stats(&self) -> Option<ParityStats>
pub fn sample(&mut self) -> Vec<bool>
pub fn sample_bulk(&mut self, num_shots: usize) -> Vec<Vec<bool>>
pub fn sample_bulk_packed(&mut self, num_shots: usize) -> PackedShots
pub fn try_sample_bulk_packed( &mut self, num_shots: usize, ) -> Result<PackedShots>
pub fn sample_chunked<A: ShotAccumulator>( &mut self, total_shots: usize, acc: &mut A, )
pub fn sample_chunked_with_size<A: ShotAccumulator>( &mut self, total_shots: usize, chunk_size: usize, acc: &mut A, )
pub fn sample_counts(&mut self, total_shots: usize) -> HashMap<Vec<u64>, u64>
pub fn try_sample_counts( &mut self, total_shots: usize, ) -> Result<HashMap<Vec<u64>, u64>>
pub fn sample_marginals(&mut self, total_shots: usize) -> Vec<f64>
pub fn try_sample_marginals(&mut self, total_shots: usize) -> Result<Vec<f64>>
pub fn sample_detection_events( &mut self, pairs: &[(usize, usize)], num_shots: usize, ) -> PackedShots
pub fn exact_counts(&self) -> Option<HashMap<Vec<u64>, u64>>
pub fn marginal_probabilities(&self) -> Vec<f64>
pub fn parity_report(&self) -> String
pub fn detection_event_report(&self, pairs: &[(usize, usize)]) -> String
Auto Trait Implementations§
impl Freeze for CompiledSampler
impl RefUnwindSafe for CompiledSampler
impl Send for CompiledSampler
impl Sync for CompiledSampler
impl Unpin for CompiledSampler
impl UnsafeUnpin for CompiledSampler
impl UnwindSafe for CompiledSampler
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