Commit ebee35bb authored by Viacheslav Ostroukh's avatar Viacheslav Ostroukh 🚲
Browse files

get rid of deprecated np.complex, use complex instead

parent 6f85b0f6
......@@ -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
Supports Markdown
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