Skip to content

Commit

Permalink
Fix command string
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-cqc committed Aug 18, 2023
1 parent b903c08 commit be5490a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tket/src/Circuit/Boxes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit be5490a

Please sign in to comment.