Class CombinationGenerator

Inheritance Relationships

Base Type

Class Documentation

class CombinationGenerator : public Pennylane::Util::WiresGenerator

as combination). The size of all combination is given as \(n \choose r\).

We use the recursion formula \({n \choose r} = {n \choose r-1} + {n-1 \choose r}\)

Public Functions

inline void comb(std::size_t n, std::size_t r)
inline CombinationGenerator(std::size_t n, std::size_t r)
inline virtual auto all_perms() const -> const std::vector<std::vector<std::size_t>>& override