diff --git a/tket/src/Circuit/Boxes.cpp b/tket/src/Circuit/Boxes.cpp index 9ce8374cc7..99f1e2d6a0 100644 --- a/tket/src/Circuit/Boxes.cpp +++ b/tket/src/Circuit/Boxes.cpp @@ -384,7 +384,7 @@ std::string QControlBox::get_command_str(const unit_vector_t &args) const { std::stringstream out; out << "qif ("; if (n_controls_ > 0) { - out << args.at(0).repr(); + out << args.at(0).repr() << " = " << control_state_.at(0); for (unsigned i = 1; i < n_controls_; ++i) { out << ", " << args.at(i).repr() << " = " << control_state_.at(i); }