bugfix and removal of unused variable in qfunc
bugfix and removal of unused variable in qfunc

anubhavvardhan/qutip,cgranade/qutip,qutip/qutip,zasdfgbnm/qutip,cgranade/qutip,anubhavvardhan/qutip,zasdfgbnm/qutip,qutip/qutip