Fields
node_ids: Vec<i32>The integer ids of the computational nodes at the two ends of the edge. Order is not important; an architecture edge is treated as undirected.
Implementations
sourceimpl Edge
impl Edge
sourcepub fn new(node_ids: Vec<i32>) -> Edge
pub fn new(node_ids: Vec<i32>) -> Edge
A degree-two logical connection in the quantum processor’s architecture. The existence of an edge in the ISA Architecture does not necessarily mean that a given 2Q operation will be available on the edge. This information is conveyed by the presence of the two node_id values in instances of Instruction. Note that edges are undirected in this model. Thus edge :math:(a, b) is equivalent to edge :math:(b, a).
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Edge
Auto Trait Implementations
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more