Skip to content

Commit

Permalink
Fix lint LGPU.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Jul 8, 2024
1 parent 8385da6 commit 240b7ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void registerBackendSpecificObservables(py::module_ &m) {
"Get wires of observables")
.def(
"__eq__",
[](const SparseHamiltonian<StateVectorT> &self,
[]([[maybe_unused]] const SparseHamiltonian<StateVectorT> &self,
py::handle other) -> bool {
if (!py::isinstance<SparseHamiltonian<StateVectorT>>(other)) {
return false;
Expand Down Expand Up @@ -389,7 +389,7 @@ void registerBackendSpecificInfo(py::module_ &m) {
.def_static("getDeviceUIDs", &DevicePool<int>::getDeviceUIDs)
.def_static("setDeviceID", &DevicePool<int>::setDeviceIdx)
.def(py::pickle(
[](const DevicePool<int> &self) { // __getstate__
[]([[maybe_unused]] const DevicePool<int> &self) { // __getstate__
return py::make_tuple();
},
[](py::tuple &t) { // __setstate__
Expand Down

0 comments on commit 240b7ed

Please sign in to comment.