Struct qcs_api_client_openapi::models::edge::Edge
source · pub struct Edge {
pub node_ids: Vec<i32>,
}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§
source§impl 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§
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