22#include "mqss/Protocol.hpp"
25#include <MQSSCIInterfaces/MQSSCompiler.h>
27#include <mqss/submitter/Error.h>
30namespace mqss::qrmci {
43 const mqss::submitter::Error &error);
84[[nodiscard]] std::expected<mqss::mqssci::OptLevel, Error>
std::string backendStatusLabel(mqss::BackendStatus status)
Name a backend status for a log line.
mqss::BackendType mapProtoBackendType(int type) noexcept
Translate a raw backend-type value received over the wire into a mqss::BackendType,...
mqss::CircuitFormat mapProtoCircuitFormat(int format) noexcept
Translate a raw circuit-format value received over the wire into a mqss::CircuitFormat.
std::expected< mqss::mqssci::OptLevel, Error > getCompilerOptimizationLevel(int level)
Translate a task's requested optimisation level into the matching mqss-ci compiler optimisation level...
mqss::BackendStatus mapProtoBackendStatus(int status) noexcept
Translate a raw backend-status value received over the wire into a mqss::BackendStatus,...
bool isOnlineBackendStatus(mqss::BackendStatus status) noexcept
Check whether a backend status means the backend is able to accept tasks.
std::string circuitFormatLabel(mqss::CircuitFormat format)
Name a circuit format for a log line.
Error toQrmciError(Error::Kind kind, const mqss::submitter::Error &error)
Wrap a submitter failure as a QRM&CI failure of a kind the caller names.
The error type every std::expected in QRM&CI's public interfaces carries.
A failure reported by a QRM&CI operation: a kind the caller can act on, plus a human-readable detail ...
Kind
What kind of failure occurred.