Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
multiphaseCFD committed Oct 18, 2024
1 parent 74571b9 commit 29fff3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane_lightning/core/src/utils/Util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ std::vector<T1> cast_vector(const std::vector<T0> &vec) {
*/
template <typename T = std::size_t>
bool areVecsDisjoint(const std::vector<T> &v1, const std::vector<T> &v2) {
std::set<std::size_t> s0(v1.begin(), v1.end());
std::set<T> s0(v1.begin(), v1.end());
s0.insert(v2.begin(), v2.end());
return s0.size() == v1.size() + v2.size();
}
Expand Down

0 comments on commit 29fff3f

Please sign in to comment.