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 Sep 5, 2023
1 parent c3bfbdd commit 011b7e7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pytket/binders/circuit/Circuit/add_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,11 @@ void init_circuit_add_op(py::class_<Circuit, std::shared_ptr<Circuit>> &c) {
"barrier bits, conditioned on the given condition bits."
"\n\n:param barrier_qubits: Qubit in Barrier operation."
"\n:param barrier_bits: Bit in Barrier operation."
"\n:param condition_bits: Bit covering classical control "
"condition "
"\n:param condition_bits: Bit covering classical control condition "
"of barrier operation."
"\n:param value: Value that classical condition must have to "
"hold (little-endian)."
"\n: param data: Additional data stored in Barrier operation."
"\n:param data: Additional data stored in Barrier operation."
"\n:return: the new :py:class:`Circuit`",
py::arg("barrier_qubits"), py::arg("barrier_bits"),
py::arg("condition_bits"), py::arg("value"), py::arg("data") = "")
Expand Down Expand Up @@ -438,7 +437,6 @@ void init_circuit_add_op(py::class_<Circuit, std::shared_ptr<Circuit>> &c) {
"\n\n:param data: additional data stored in the barrier"
"\n:return: the new :py:class:`Circuit`",
py::arg("units"), py::arg("data") = "")

.def(
"add_conditional_barrier",
[](Circuit *circ, const unit_vector_t &barrier_args,
Expand All @@ -452,11 +450,10 @@ void init_circuit_add_op(py::class_<Circuit, std::shared_ptr<Circuit>> &c) {
"barrier bits, conditioned on the given condition bits."
"\n\n:param barrier_args: Qubit and Bit in Barrier operation."
"\n:param condition_bits: Bit covering classical control "
"condition "
"of barrier operation."
" condition of barrier operation."
"\n:param value: Value that classical condition must have to "
"hold (little-endian)."
"\n: param data: Additional data stored in Barrier operation."
" hold (little-endian)."
"\n:param data: Additional data stored in Barrier operation."
"\n:return: the new :py:class:`Circuit`",
py::arg("barrier_args"), py::arg("condition_bits"), py::arg("value"),
py::arg("data") = "")
Expand Down

0 comments on commit 011b7e7

Please sign in to comment.