Skip to main content

contract_with_options

Function contract_with_options 

Source
pub fn contract_with_options(
    tensors: &[&IdxTensor],
    options: ContractionOptions<'_>,
) -> Result<IdxTensor, IdxTensorError>
Expand description

Contract a connected tensor network with advanced options.

ยงErrors

Returns IdxTensorError::Operation when the network is disconnected, when indices do not match, or when the backend contraction fails.