Hello,
I have a density matrix (see attached figure) for a bipartite system (qubit+oscillator). I want to calculate the LN of each subsystem separately. The qutip code "logarithmic_negativity(V, g=1.4142135623730951)" does not work for me because an error appears in covariance matrix V, like LinAlgError: Last 2 dimensions of the array must be square. Maybe I am taking the wrong steps. I am not sure why this error was generated here.
So, I want to calculate the LN from the definition of partial transpose, but I do not understand the command "partial_transpose(rho, mask, method='dense')" specifically the significance of mask.
I would appreciate it if anyone could suggest some valuable advice in this context.
Regards,
Kingshuk