25concept arithmetic = std::integral<T> or std::floating_point<T>;
27template <arithmetic T>
47template <arithmetic T>
49 j[
"min"] = bounds.
min;
50 j[
"max"] = bounds.
max;
52template <arithmetic T>
54 bounds.
min = j.at(
"min").get<
T>();
55 bounds.
max = j.at(
"max").get<
T>();
Defines tket::DeviceCharacterisation, used in NoiseAwarePlacement and in commute_SQ_gates_through_SWA...
void from_json(const nlohmann::json &j, Architecture::Connection &link)
void to_json(nlohmann::json &j, const Architecture::Connection &link)
ResourceBounds(T minval, T maxval)
bool operator==(const ResourceBounds< T > &other) const
ResourceBounds< unsigned > GateDepth
bool operator==(const ResourceData &other) const
ResourceBounds< unsigned > TwoQubitGateDepth
std::map< OpType, ResourceBounds< unsigned > > OpTypeDepth
std::map< OpType, ResourceBounds< unsigned > > OpTypeCount