Commit 9e1361b8 authored by Viacheslav Ostroukh's avatar Viacheslav Ostroukh 🚲
Browse files

get rid of deprecated np.complex, use complex instead

parent b09dfe52
Pipeline #75479 passed with stages
in 8 minutes and 48 seconds
...@@ -580,7 +580,7 @@ cdef class _LocalOperator: ...@@ -580,7 +580,7 @@ cdef class _LocalOperator:
tot_norbs = _get_tot_norbs(self.syst) tot_norbs = _get_tot_norbs(self.syst)
if ket.shape != (tot_norbs,): if ket.shape != (tot_norbs,):
raise ValueError('ket vector is incorrect shape') raise ValueError('ket vector is incorrect shape')
result = np.zeros((tot_norbs,), dtype=np.complex) result = np.zeros((tot_norbs,), dtype=complex)
self._operate(out_data=result, bra=None, ket=ket, args=args, self._operate(out_data=result, bra=None, ket=ket, args=args,
params=params, op=ACT) params=params, op=ACT)
return result return result
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment