contract_path_cost

Function contract_path_cost 

Source
pub fn contract_path_cost(
    inputs: &[Tensor],
    contract_path: &ContractionPath,
    only_count_ops: bool,
) -> (f64, f64)
Expand description

Returns Schroedinger contraction time and space complexity of fully contracting the input tensors.

ยงArguments

  • inputs - Tensors to contract
  • contract_path - Contraction order (replace path)
  • only_count_ops - If true, ignores cost of complex multiplication and addition and only counts number of operations