Class PermutationGenerator

Inheritance Relationships

Base Type

Class Documentation

class PermutationGenerator : public Pennylane::Util::WiresGenerator

permutation is given as \({}_{n}P_r=n!/(n-r)!r!\).

We use the recursion formula :math:{}_n P_r = n {}_{n-1} P_{r-1}

Public Functions

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