Enum ket::object::DumpData

source ·
pub enum DumpData {
    Vector {
        basis_states: Vec<Vec<u64>>,
        amplitudes_real: Vec<f64>,
        amplitudes_imag: Vec<f64>,
    },
    Probability {
        basis_states: Vec<Vec<u64>>,
        probabilities: Vec<f64>,
    },
    Shots {
        basis_states: Vec<Vec<u64>>,
        count: Vec<u32>,
        total: u64,
    },
}

Variants

Vector

Fields

basis_states: Vec<Vec<u64>>
amplitudes_real: Vec<f64>
amplitudes_imag: Vec<f64>

Probability

Fields

basis_states: Vec<Vec<u64>>
probabilities: Vec<f64>

Shots

Fields

basis_states: Vec<Vec<u64>>
count: Vec<u32>
total: u64

Implementations

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.