pub struct GateMetadata {
pub name: String,
pub num_qubits: usize,
pub qubits: Vec<QubitId>,
pub matrix_dims: (usize, usize),
pub sparsity_ratio: f64,
pub is_unitary: bool,
}Expand description
Metadata for compressed gates
Fields§
§name: StringGate name
num_qubits: usizeNumber of qubits
qubits: Vec<QubitId>Target qubits
matrix_dims: (usize, usize)Matrix dimensions
sparsity_ratio: f64Sparsity ratio (0.0 = dense, 1.0 = all zeros)
is_unitary: boolWhether the gate is unitary
Trait Implementations§
Source§impl Clone for GateMetadata
impl Clone for GateMetadata
Source§fn clone(&self) -> GateMetadata
fn clone(&self) -> GateMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GateMetadata
impl RefUnwindSafe for GateMetadata
impl Send for GateMetadata
impl Sync for GateMetadata
impl Unpin for GateMetadata
impl UnwindSafe for GateMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more