Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add apply_clifford_basis_change_tensor #1005

Merged
merged 10 commits into from
Sep 6, 2023
Prev Previous commit
Next Next commit
Update tailoring.cpp
sjdilkes committed Sep 6, 2023
commit 582ef004919d64e9f0db1f8112627734106f9396
15 changes: 7 additions & 8 deletions pytket/binders/tailoring.cpp
Original file line number Diff line number Diff line change
@@ -173,19 +173,18 @@ PYBIND11_MODULE(tailoring, m) {
"apply_clifford_basis_change", &apply_clifford_basis_change_string,
"Given Pauli operator P and Clifford circuit C, "
"returns C_dagger.P.C in multiplication order. This ignores any -1 "
"phase that could be introduced.\n\n:param pauli: Pauli "
"operator being transformed. \n:param circuit: "
"Clifford circuit acting on Pauli operator.\n"
":return: :py:class:`QubitPauliString` for new operator",
"phase that could be introduced. "
"\n\n:param pauli: Pauli operator being transformed. "
"\n:param circuit: Clifford circuit acting on Pauli operator. "
"\n:return: :py:class:`QubitPauliString` for new operator",
py::arg("pauli"), py::arg("circuit"));
m.def(
"apply_clifford_basis_change_tensor", &apply_clifford_basis_change_tensor,
"Given Pauli operator P and Clifford circuit C, "
"returns C_dagger.P.C in multiplication order"
"\n\n:param pauli: Pauli "
"operator being transformed. \n:param circuit: "
"Clifford circuit acting on Pauli operator.\n"
":return: :py:class:`QubitPauliTensor` for new operator",
"\n\n:param pauli: Pauli operator being transformed."
"\n:param circuit: Clifford circuit acting on Pauli operator. "
"\n:return: :py:class:`QubitPauliTensor` for new operator",
py::arg("pauli"), py::arg("circuit"));
}
} // namespace tket