19 namespace error_model {
59 ErrorModel(
const std::string &name,
const std::string ¶m_types =
"");
70 return !(*
this == rhs);
92 namespace primitives {
::tree::base::Maybe< T > Maybe
tree::Maybe< ErrorModel > ErrorModelRef
Optional reference to an error model, used within the semantic tree.
std::string name
The name of the error model.
types::Types param_types
The vector of parameter types that this error model expects.
error_model::ErrorModelRef deserialize(const ::tree::cbor::MapReader &map)
Deserializes the given primitive object from CBOR.
Toplevel namespace with entry points for the new API.
Defines classes representing the values (collective name for constants, references, and dynamically evaluated expressions) available within cQASM's type system, as well as some utility functions.
void serialize(const error_model::ErrorModelRef &obj, ::tree::cbor::MapWriter &map)
Representation of an error model.
Namespace for the "new" cQASM 1.x API.
std::ostream & operator<<(std::ostream &os, const ErrorModel &model)
Stream << overload for error models.
tree::Any< TypeBase > Types
Zero or more cQASM types.
ErrorModel(const std::string &name, const std::string ¶m_types="")
Creates a new error model.
bool operator!=(const ErrorModel &rhs) const
Inequality operator.
Defines the types of values available within cQASM's type system, as well as some utility functions...
bool operator==(const ErrorModel &rhs) const
Equality operator.