Quantum Resource Manager and Compiler Infrastructure (QRM&CI) 0.1.0
BackendRegistry.h File Reference
Include dependency graph for BackendRegistry.h:
This graph shows which files directly or indirectly include this file:

Classes

class  mqss::qrmci::BackendRegistry
 Owns the backends a process knows about, keyed by backend name. More...

Enumerations

enum class  mqss::qrmci::BackendSelectionPolicy : std::uint8_t { LowestName , SmallestSufficient }
 Named rule deciding which backend wins when several of them could run the same task. More...

Detailed Description

The set of backends a QRM&CI process may schedule onto, and the time-to-live after which an entry nobody refreshed is dropped.

See PublicationThrottle.h for the unrelated concern of pacing status refresh/publication.

Definition in file BackendRegistry.h.

Enumeration Type Documentation

◆ BackendSelectionPolicy

enum class mqss::qrmci::BackendSelectionPolicy : std::uint8_t
strong

Named rule deciding which backend wins when several of them could run the same task.

Every policy is a total order over backend names, so the same task and the same registry always yield the same choice – across runs, hosts and standard-library versions.

Enumerator
LowestName 

The compatible backend whose name sorts first.

SmallestSufficient 

The compatible backend with the fewest qubits (best fit, leaving the larger devices free for larger circuits), ties broken by LowestName.

Definition at line 32 of file BackendRegistry.h.