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 an error when the network is disconnected (a disconnected-network /// failure), when indices are incompatible (a shape or index mismatch), or /// when the contraction reports a failure (a backend failure).