pub fn simulate_and_sample(
circuit: &ParameterizedQuantumCircuit,
shots: usize,
) -> DeviceResult<CircuitResult>Expand description
Simulate circuit and sample shots measurement outcomes from the exact
output distribution, returning a CircuitResult with real counts.
Sampling uses fastrand (the crate’s existing RNG dependency). The
returned counts are genuine multinomial draws from |⟨i|ψ⟩|², so they
reflect the true circuit (e.g. a Bell circuit yields only correlated
00/11 outcomes, never the uniform spread the old mock produced).