communication_path_cost

Function communication_path_cost 

Source
pub fn communication_path_cost(
    inputs: &[Tensor],
    contract_path: SimplePathRef<'_>,
    only_count_ops: bool,
    only_critical_path: bool,
    tensor_cost: Option<&[f64]>,
) -> (f64, f64)
Expand description

Returns Schroedinger contraction time and space complexity of fully contracting the input tensors assuming all operations occur in parallel.

ยง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
  • only_circital_path - If true, only counts the cost along the critical path, otherwise the sum of all costs
  • tensor_costs - Initial cost for each tensor