Skip to content

Commit

Permalink
Added some bindings for FermionOperator arithmetics
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Claudino <claudinodc@ornl.gov>
  • Loading branch information
danclaudino committed Dec 9, 2024
1 parent 80ad50f commit 03be91a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions quantum/python/xacc-quantum-py.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ void bind_quantum(py::module &m) {
.def(py::self += py::self)
.def(py::self *= py::self)
.def(py::self *= double())
.def(py::self * double())
.def(double() * py::self)
.def(py::self * py::self)
.def(py::self *= std::complex<double>())
.def(py::self -= py::self)
Expand Down

0 comments on commit 03be91a

Please sign in to comment.