26 #ifndef GRAYCODEHASH_BASE_HPP 27 #define GRAYCODEHASH_BASE_HPP 36 template <
typename intType>
66 for (
size_t idx=0; idx<key.
cols; idx++) {
67 hash_val = hash_val + data[idx]*pow;
68 pow = pow*n_ary_limits[idx];
81 #endif // GRAYCODEHASH_BASE_HPP matrix_base< intType > get_Limits() const
Call to get the n-ary limits of the Gray code.
Copyright 2021 Budapest Quantum Computing Group.
Class to hash function operator for GrayCode_base keys in unordered maps and unordered sets...
data
load the unitary from file
intType * get_data() const
Call to get the pointer to the stored data.
int cols
The number of columns.
GrayCodeHash_base()
Constructor of the class.
size_t operator()(const GrayCode_base< intType > &key) const
Operator to generate hash key for class instance PicState_base<intType>