From 011b7e7394e5b7a4b9e0ae629498881bb77e4815 Mon Sep 17 00:00:00 2001 From: sjdilkes Date: Tue, 5 Sep 2023 15:10:49 +0100 Subject: [PATCH] Update add_op.cpp --- pytket/binders/circuit/Circuit/add_op.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pytket/binders/circuit/Circuit/add_op.cpp b/pytket/binders/circuit/Circuit/add_op.cpp index 79d259415e..3e1aa31a34 100644 --- a/pytket/binders/circuit/Circuit/add_op.cpp +++ b/pytket/binders/circuit/Circuit/add_op.cpp @@ -187,12 +187,11 @@ void init_circuit_add_op(py::class_> &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") = "") @@ -438,7 +437,6 @@ void init_circuit_add_op(py::class_> &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, @@ -452,11 +450,10 @@ void init_circuit_add_op(py::class_> &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") = "")