Template Function Pennylane::LightningQubit::Util::is_disjoint

Function Documentation

template<typename IntegerType>
bool Pennylane::LightningQubit::Util::is_disjoint(const IntegerInterval<IntegerType> &interval1, const IntegerInterval<IntegerType> &interval2)

Test if the intersection of two intervals are empty, i.e. \(I_1 \cap I_2 = \phi\).