Hi;
I am working on a project where I was required to calculate wigner function for qudits. I started with d=3 (qutrits) and implemented following steps in qutip:
1. Generated random matrices using rand_dm with dim=[3,3], used low density to have non-zero elements only at the diagonal.
2. Generated wigner function for the above using qutip.wigner(random_dm, xvec, xvec,method='laguerre').
I was expecting to get the following results:
A. random_dm= [1, 0, 0
0, 0, 0
0, 0, 0] => wigner function positive everywhere
B. random_dm= [0, 0, 0
0, 1 ,0
0, 0, 0] => wigner function positive everywhere
C. random_dm= [0, 0, 0
0, 0, 0
0, 0, 1] => wigner function positive everywhere
What I got was following:
A.=> wigner function positive everywhere
B.=> wigner function negative somewhere
C.=> wigner function negative somewhere
I tried doing the same using basis() and plot_wigner() but the results are same i.e. negative wigner for B and C.
Now given that the A, B and C are basis states with no magic, getting a negative wigner function for B and C is astonishing and in variance with literature (victor veitch thesis).
Can someone kindly let me know where is the mistake?
With regards,
Ashish Arya