From be5490a292a911f04698ba1aeccd7cf10d972fcf Mon Sep 17 00:00:00 2001 From: Yao Tang Date: Fri, 18 Aug 2023 16:26:58 +0100 Subject: [PATCH] Fix command string --- tket/src/Circuit/Boxes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }