pub struct TensorNetworkVertex {
pub pubkey: Vec<u8>,
pub label: String,
pub dimension: u32,
pub entanglement_index: u32,
pub created_at: i64,
}Expand description
A vertex in the tensor network (e.g., a miner or pool).
In REALMS, vertices carry tensor T_{i1,i2,…,ik} mapping incoming indices to outgoing indices. For blockchain, we model this as a labeled quantum subsystem.
Fields§
§pubkey: Vec<u8>Unique identifier (e.g., miner pubkey, pool address)
label: StringHuman-readable label for this vertex
dimension: u32Vector space dimension (typical: 2 for qubits, 4 for ququarts, 8+ for qudits)
entanglement_index: u32Count of entanglement edges connected to this vertex
created_at: i64Unix timestamp when this vertex was created
Implementations§
Trait Implementations§
Source§impl Clone for TensorNetworkVertex
impl Clone for TensorNetworkVertex
Source§fn clone(&self) -> TensorNetworkVertex
fn clone(&self) -> TensorNetworkVertex
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 moreSource§impl Debug for TensorNetworkVertex
impl Debug for TensorNetworkVertex
Source§impl<'de> Deserialize<'de> for TensorNetworkVertex
impl<'de> Deserialize<'de> for TensorNetworkVertex
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TensorNetworkVertex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TensorNetworkVertex, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TensorNetworkVertex
impl Hash for TensorNetworkVertex
Source§impl PartialEq for TensorNetworkVertex
impl PartialEq for TensorNetworkVertex
Source§impl Serialize for TensorNetworkVertex
impl Serialize for TensorNetworkVertex
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for TensorNetworkVertex
impl StructuralPartialEq for TensorNetworkVertex
Auto Trait Implementations§
impl Freeze for TensorNetworkVertex
impl RefUnwindSafe for TensorNetworkVertex
impl Send for TensorNetworkVertex
impl Sync for TensorNetworkVertex
impl Unpin for TensorNetworkVertex
impl UnsafeUnpin for TensorNetworkVertex
impl UnwindSafe for TensorNetworkVertex
Blanket Implementations§
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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