yingjerkao / uni10

Official Repo for Uni10
28 stars 9 forks source link

pyUni10: Qnum.prtF() return wrong results #3

Closed pcchen closed 8 years ago

pcchen commented 8 years ago

Qnum.prtF() always return 0(=PRTF_EVEN).

The following code

import pyUni10 as uni10
print uni10.PRTF_ODD, uni10.PRTF_EVEN
q_odd = uni10.Qnum(uni10.PRTF_ODD)
q_even = uni10.Qnum(uni10.PRTF_EVEN)
print q_odd.prtF(), q_even.prtF()

return

1 0
0 0

which is wrong.

yingjerkao commented 8 years ago

In pyUni10, please use QnumF to set fermonic quantum number