32 std::stringstream out;
35 out <<
" " << args[0].repr();
36 for (
unsigned i = 1; i < args.size(); i++) {
37 out <<
", " << args[i].repr();
48void to_json(nlohmann::json& j,
const Op_ptr& op) { j = op->serialize(); }
std::string name() const
Name.
std::string latex() const
Name in Latex representation.
Abstract class representing an operation type.
virtual std::string get_name(bool latex=false) const
String representation.
OpDesc get_desc() const
Get operation descriptor.
virtual std::string get_command_str(const unit_vector_t &args) const
Command representation.
Defines tket::DeviceCharacterisation, used in NoiseAwarePlacement and in commute_SQ_gates_through_SWA...
std::ostream & operator<<(std::ostream &out, const Circuit &circ)
std::shared_ptr< const Op > Op_ptr
std::vector< UnitID > unit_vector_t
void to_json(nlohmann::json &j, const Architecture::Connection &link)