Hi all,
Still new to QuTiP. Trying to use the logarithmic_negativity function (a simple code is attached below).
I am getting the following error:
TypeError: No loop matching the specified signature and casting was found for ufunc det
What am I missing here?
Thanks in advance.
Pradip
########################################################
import numpy as np
from qutip import *
N=15
a = tensor(destroy(N), qeye(N))
b = tensor(qeye(N), destroy(N))
H = a*b.dag()*b.dag() + a.dag()*b*b
x1 = (+1./np.sqrt(2.))*(a + a.dag())
p1 = (-1j/np.sqrt(2.))*(a - a.dag())
x2 = (+1./np.sqrt(2.))*(b + b.dag())
p2 = (-1j/np.sqrt(2.))*(b - b.dag())
ops = [x1, p1, x2, p2]
rho0_a = fock_dm(N, 0)
rho0_b = thermal_dm(N, 1.0, 'analytic')
rho0 = tensor(rho0_a, rho0_b)
tlist = np.linspace(0, 5, 201)
rhot = mesolve(H, rho0, tlist, [], [])
for ii in range(201):
cov_mat = covariance_matrix(ops, rhot.states[ii])
log_neg = logarithmic_negativity(cov_mat)
########################################################