Commit ebee35bb authored by Slava Ostroukh's avatar Slava Ostroukh

get rid of deprecated np.complex, use complex instead

parent 6f85b0f6
Pipeline #54207 passed with stages
in 11 minutes and 12 seconds
......@@ -859,7 +859,7 @@ cdef class _LocalOperator:
tot_norbs = _get_tot_norbs(self.syst)
if ket.shape != (tot_norbs,):
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,
params=params, op=ACT)
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