pub struct SimQpu { /* private fields */ }Expand description
A deterministic dense state-vector simulator. Amplitudes never leave the
simulator — sample returns only a classical CountHistogram.
Implementations§
Trait Implementations§
Source§impl QpuSampler for SimQpu
impl QpuSampler for SimQpu
Source§type Shots = CountHistogram
type Shots = CountHistogram
The classical shot histogram this sampler returns.
Source§type Calibration = SimCalibration
type Calibration = SimCalibration
The device calibration / topology metadata surfaced to the context
channel by
qpu_effect.Source§fn sample(
&self,
circuit: &QuantumCircuit,
shots: u64,
) -> Result<Self::Shots, QuantumError>
fn sample( &self, circuit: &QuantumCircuit, shots: u64, ) -> Result<Self::Shots, QuantumError>
Samples
shots executions of circuit, returning the classical outcome
histogram or a typed failure. Deterministic implementations reproduce the
same histogram for the same input.Source§fn calibration(&self) -> SimCalibration
fn calibration(&self) -> SimCalibration
The device calibration surfaced at the Kleisli boundary.
Auto Trait Implementations§
impl Freeze for SimQpu
impl RefUnwindSafe for SimQpu
impl Send for SimQpu
impl Sync for SimQpu
impl Unpin for SimQpu
impl UnsafeUnpin for SimQpu
impl UnwindSafe for SimQpu
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