10 std::size_t
hash()
const override {
11 size_t seed = std::hash<int>()(
node_addr);
18 bool compare(
const IQubitId& id_ref)
const override {
30 void hashCombine(std::size_t& seed,
int const& v)
const { seed ^= std::hash<int>()(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2); }
a key to identify a qubit in a backend.
Definition IQubitId.h:14
QubitId(int node_addr, int qnic_index, int qnic_type, int qubit_addr)
Definition QubitId.h:9
int qubit_addr
Definition QubitId.h:26
int node_addr
Definition QubitId.h:23
int qnic_index
Definition QubitId.h:24
void hashCombine(std::size_t &seed, int const &v) const
Definition QubitId.h:30
bool compare(const IQubitId &id_ref) const override
Definition QubitId.h:18
std::size_t hash() const override
Definition QubitId.h:10
int qnic_type
Definition QubitId.h:25