pub struct DetectorSampler { /* private fields */ }Implementations§
Source§impl DetectorSampler
impl DetectorSampler
pub fn num_detectors(&self) -> u64
pub fn num_observables(&self) -> u64
pub fn sample_bit_packed(&mut self, shots: u64) -> Vec<u8> ⓘ
pub fn sample_observables_bit_packed(&mut self, shots: u64) -> Vec<u8> ⓘ
pub fn sample_bit_packed_separate_observables( &mut self, shots: u64, ) -> (Vec<u8>, Vec<u8>)
pub fn sample_write( &mut self, shots: u64, filepath: &str, format_name: &str, ) -> Result<(), Exception>
pub fn sample_write_separate_observables( &mut self, shots: u64, dets_filepath: &str, dets_format_name: &str, obs_filepath: &str, obs_format_name: &str, ) -> Result<(), Exception>
Auto Trait Implementations§
impl Freeze for DetectorSampler
impl RefUnwindSafe for DetectorSampler
impl !Send for DetectorSampler
impl !Sync for DetectorSampler
impl Unpin for DetectorSampler
impl UnsafeUnpin for DetectorSampler
impl UnwindSafe for DetectorSampler
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