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 contractcontract_path- Contraction order (replace path)only_count_ops- Iftrue, ignores cost of complex multiplication and addition and only counts number of operationsonly_circital_path- Iftrue, only counts the cost along the critical path, otherwise the sum of all coststensor_costs- Initial cost for each tensor