Skip to main content

contract_network_along_path

Function contract_network_along_path 

Source
pub fn contract_network_along_path(
    tensors: &mut HashMap<usize, Tensor>,
    connections: &mut Vec<(TensorIndex, TensorIndex)>,
    path: &ContractionPath,
    next_id: &mut usize,
) -> QuantRS2Result<Tensor>
Expand description

Contract a tensor network according to a given contraction path