QuISP
|
a key to identify a qubit in a backend. More...
#include <IQubitId.h>
Classes | |
class | Hash |
class | Pred |
Public Member Functions | |
virtual | ~IQubitId () |
Protected Member Functions | |
virtual std::size_t | hash () const =0 |
virtual bool | compare (const IQubitId &id) const =0 |
a key to identify a qubit in a backend.
Inherit this class and add your own fields to it. This class is used like unoredered_map<const IQubitId*, unique_ptr<SomeQubit>, IQubitId::Hash, IQubitId::Pred>
see also the existing backend implementations.
|
inlinevirtual |
|
protectedpure virtual |
a comparison function for unordered_map.
|
protectedpure virtual |
a hash function for unordered_map. this function should return a unique value for each qubit id.
Implemented in quisp::modules::qubit_id::QubitId.