Skip to content

Commit

Permalink
Update add_op.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdilkes committed Aug 30, 2023
1 parent bc570fc commit 431ddbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pytket/binders/circuit/Circuit/add_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ void init_circuit_add_op(py::class_<Circuit, std::shared_ptr<Circuit>> &c) {
[](Circuit *circ, const std::vector<unsigned> &barrier_qubits,
const std::vector<unsigned> &barrier_bits,
const std::vector<unsigned> &condition_bits, unsigned value,
const std::string &data) {
const std::string &_data) {
circ->add_conditional_barrier(
barrier_qubits, barrier_bits, condition_bits, value, data);
barrier_qubits, barrier_bits, condition_bits, value, _data);
return circ;
},
"Append a Conditional Barrier on the given barrier qubits and "
Expand Down Expand Up @@ -449,7 +449,7 @@ void init_circuit_add_op(py::class_<Circuit, std::shared_ptr<Circuit>> &c) {
const unit_vector_t &condition_bits, unsigned value,
const std::string &_data) {
circ->add_conditional_barrier(
barrier_args, condition_bits, value, data);
barrier_args, condition_bits, value, _data);
return circ;
},
"Append a Conditional Barrier on the given barrier qubits and "
Expand Down

0 comments on commit 431ddbf

Please sign in to comment.