Struct qasmsim::Computation [−][src]
pub struct Computation { /* fields omitted */ }
Expand description
Represent the result of a simulation.
API functions such as simulate()
or simulate_with_shots()
return
Computation
instances.
Examples:
See simulate()
or simulate_with_shots()
for an example of generating
a Computation
instance.
Implementations
Create a new computation.
Probabilities are computed from the state-vector.
Return the statevector of the quantum system.
Return an associative map with classical names and the classical outcomes.
Return the probabilities associated with the state-vector.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Computation
impl Send for Computation
impl Sync for Computation
impl Unpin for Computation
impl UnwindSafe for Computation
Blanket Implementations
Mutably borrows from an owned value. Read more