Skip to main content

are_exclusive_operators

Function are_exclusive_operators 

Source
pub fn are_exclusive_operators<T, V, O>(
    target: &SiteIndexNetwork<V, T::Index>,
    operators: &[&O],
) -> bool
where T: TensorLike, V: Clone + Hash + Eq + Ord + Send + Sync + Debug, O: Operator<T, V>,
Expand description

Check if a set of operators are exclusive (non-overlapping) on the target network.

Operators are exclusive if:

  1. Vertex-disjoint: No two operators share a node
  2. Connected subtrees: Each operator’s nodes form a connected subtree
  3. Path-exclusive: Paths between different operators don’t cross other operators

§Arguments

  • target - The target site index network (full space)
  • operators - The operators to check

§Returns

true if operators are exclusive, false otherwise.