fix bug in gate_expand_3toN for the case when N=3 and targets and controls are only permuted
fix bug in gate_expand_3toN for the case when N=3 and targets and controls are only permuted

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