Struct qcs_api_client_openapi::models::edge::Edge
source · pub struct Edge {
pub node_ids: Vec<i64>,
}Fields§
§node_ids: Vec<i64>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§
source§impl Edge
impl Edge
sourcepub fn new(node_ids: Vec<i64>) -> Edge
pub fn new(node_ids: Vec<i64>) -> 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§
source§impl<'de> Deserialize<'de> for Edge
impl<'de> Deserialize<'de> for Edge
source§fn 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
source§impl PartialEq<Edge> for Edge
impl PartialEq<Edge> for Edge
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§
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