Skip to content

Commit

Permalink
Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
yao-cqc committed Aug 25, 2023
1 parent 745db54 commit 453e971
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions pytket/binders/circuit/boxes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,8 @@ void init_boxes(py::module &m) {
":param compute: the compute operation\n"
":param action: the action operation\n"
":param uncompute: optional uncompute operation, default to "
"compute.dagger(). If provided, the user needs to make sure that the "
"unitary matrices of uncompute.dagger() and compute must be the "
"equal.",
"compute.dagger(). If provided, the user needs to make sure that "
"uncompute.dagger() and compute have the same unitary.",
py::arg("compute"), py::arg("action"),
py::arg("uncompute") = std::nullopt)
.def(
Expand Down
4 changes: 2 additions & 2 deletions tket/include/tket/Circuit/ConjugationBox.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class ConjugationBox : public Box {
* @param compute the compute operation
* @param action the action operation
* @param uncompute optional uncompute operation, default to compute.dagger().
* If provided, the user needs to make sure that the unitary matrices of
* uncompute.dagger() and compute must be equal.
* If provided, the user needs to make sure that uncompute.dagger() and
* compute have the same unitary.
*/
explicit ConjugationBox(
const Op_ptr &compute, const Op_ptr &action,
Expand Down

0 comments on commit 453e971

Please sign in to comment.