Skip to content

Commit

Permalink
remove getitem, setitem feature of StateVector
Browse files Browse the repository at this point in the history
  • Loading branch information
KowerKoint committed Feb 19, 2024
1 parent 53fb076 commit f3fe291
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/binding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ NB_MODULE(qulacs_core, m) {
.def("sampling", &StateVector::sampling)
.def("to_string", &StateVector::to_string)
.def("load", &StateVector::load)
.def("__getitem__", [](const StateVector &s, int index) { return s[index]; })
.def("__setitem__",
[](StateVector &s, int index, const Complex &value) { s[index] = value; })
.def("__str__", &StateVector::to_string);

#define DEF_GATE(GATE_TYPE) \
Expand Down

0 comments on commit f3fe291

Please sign in to comment.