Dear group,
I realized the code for negativity in qutip.entropy only allows us to take partitions with respect to one subsystem. If one has multiple subsystems, one can be interested to study the negativity with respect to multiple partitions. This can be fixed in the code by the following change: instead of creating the mask as
mask = [idx == subsys for idx, n in enumerate(rho.dims[0])]
just create a mask as
mask=[]
for idx, n in enumerate(rho_ss.dims[0]):
if idx in subsys:
mask.append(True)
else:
mask.append(False)
Notice the change idx in subsys, instead idx==subsys.
Now, one is able to define subsys=[0,3,4, etc.] and this will perform the partial transpose with respect to those systems and find the negativity.