Template Function Pennylane::Util::areVecsDisjoint

Function Documentation

template<typename T = std::size_t>
bool Pennylane::Util::areVecsDisjoint(const std::vector<T> &v1, const std::vector<T> &v2)

Check if two vectors are disjoint.

Template Parameters

T – Data type.

Parameters
  • v1 – First vector.

  • v2 – Second vector.

Returns

bool True if the vectors are disjoint, false otherwise.