Added Gate simplification and gate sorting
Added Gate simplification and gate sorting

saurabhjn76/sympy,MechCoder/sympy,kumarkrishna/sympy,oliverlee/sympy,skidzo/sympy,Titan-C/sympy,wyom/sympy,drufat/sympy,shipci/sympy,Vishluck/sympy,amitjamadagni/sympy,farhaanbukhsh/sympy,grevutiu-gabriel/sympy,cccfran/sympy,emon10005/sympy,abloomston/sympy,atreyv/sympy,yukoba/sympy,jerli/sympy,amitjamadagni/sympy,debugger22/sympy,shikil/sympy,chaffra/sympy,shikil/sympy,jbbskinny/sympy,mcdaniel67/sympy,jamesblunt/sympy,lidavidm/sympy,garvitr/sympy,Mitchkoens/sympy,sunny94/temp,aktech/sympy,aktech/sympy,madan96/sympy,wyom/sympy,postvakje/sympy,AkademieOlympia/sympy,lindsayad/sympy,meghana1995/sympy,abloomston/sympy,grevutiu-gabriel/sympy,moble/sympy,iamutkarshtiwari/sympy,sampadsaha5/sympy,sahilshekhawat/sympy,kumarkrishna/sympy,grevutiu-gabriel/sympy,MridulS/sympy,sampadsaha5/sympy,ahhda/sympy,shikil/sympy,kaushik94/sympy,flacjacket/sympy,beni55/sympy,hargup/sympy,kmacinnis/sympy,farhaanbukhsh/sympy,oliverlee/sympy,jamesblunt/sympy,jerli/sympy,mcdaniel67/sympy,Designist/sympy,emon10005/sympy,oliverlee/sympy,postvakje/sympy,AunShiLord/sympy,cccfran/sympy,hrashk/sympy,liangjiaxing/sympy,Mitchkoens/sympy,maniteja123/sympy,kmacinnis/sympy,saurabhjn76/sympy,wyom/sympy,beni55/sympy,ahhda/sympy,Davidjohnwilson/sympy,bukzor/sympy,MechCoder/sympy,skirpichev/omg,vipulroxx/sympy,postvakje/sympy,dqnykamp/sympy,atreyv/sympy,sahilshekhawat/sympy,liangjiaxing/sympy,yashsharan/sympy,yashsharan/sympy,cccfran/sympy,sampadsaha5/sympy,Arafatk/sympy,jerli/sympy,abloomston/sympy,Designist/sympy,sahilshekhawat/sympy,pbrady/sympy,Shaswat27/sympy,kaichogami/sympy,aktech/sympy,Titan-C/sympy,minrk/sympy,ga7g08/sympy,kaushik94/sympy,debugger22/sympy,Curious72/sympy,wanglongqi/sympy,rahuldan/sympy,kevalds51/sympy,asm666/sympy,Gadal/sympy,rahuldan/sympy,atsao72/sympy,toolforger/sympy,hrashk/sympy,toolforger/sympy,garvitr/sympy,ga7g08/sympy,yukoba/sympy,kaichogami/sympy,Curious72/sympy,Titan-C/sympy,souravsingh/sympy,chaffra/sympy,pandeyadarsh/sympy,emon10005/sympy,hargup/sympy,ahhda/sympy,jbbskinny/sympy,srjoglekar246/sympy,Designist/sympy,mafiya69/sympy,ga7g08/sympy,lindsayad/sympy,pandeyadarsh/sympy,Sumith1896/sympy,jamesblunt/sympy,wanglongqi/sympy,rahuldan/sympy,kevalds51/sympy,AunShiLord/sympy,sahmed95/sympy,jaimahajan1997/sympy,dqnykamp/sympy,saurabhjn76/sympy,diofant/diofant,debugger22/sympy,atreyv/sympy,Gadal/sympy,Sumith1896/sympy,hrashk/sympy,Gadal/sympy,ChristinaZografou/sympy,bukzor/sympy,mafiya69/sympy,moble/sympy,MridulS/sympy,bukzor/sympy,Sumith1896/sympy,vipulroxx/sympy,AkademieOlympia/sympy,vipulroxx/sympy,atsao72/sympy,skidzo/sympy,Vishluck/sympy,minrk/sympy,Shaswat27/sympy,beni55/sympy,mcdaniel67/sympy,souravsingh/sympy,MridulS/sympy,liangjiaxing/sympy,madan96/sympy,garvitr/sympy,atsao72/sympy,abhiii5459/sympy,Curious72/sympy,wanglongqi/sympy,pandeyadarsh/sympy,kmacinnis/sympy,kumarkrishna/sympy,drufat/sympy,kaushik94/sympy,mafiya69/sympy,abhiii5459/sympy,Arafatk/sympy,meghana1995/sympy,yashsharan/sympy,Davidjohnwilson/sympy,moble/sympy,sahmed95/sympy,sunny94/temp,skidzo/sympy,kaichogami/sympy,VaibhavAgarwalVA/sympy,Shaswat27/sympy,Vishluck/sympy,maniteja123/sympy,cswiercz/sympy,drufat/sympy,maniteja123/sympy,jbbskinny/sympy,AkademieOlympia/sympy,asm666/sympy,souravsingh/sympy,kevalds51/sympy,pbrady/sympy,Arafatk/sympy,pbrady/sympy,lidavidm/sympy,meghana1995/sympy,jaimahajan1997/sympy,pernici/sympy,lidavidm/sympy,VaibhavAgarwalVA/sympy,shipci/sympy,Mitchkoens/sympy,madan96/sympy,toolforger/sympy,ChristinaZografou/sympy,Davidjohnwilson/sympy,lindsayad/sympy,MechCoder/sympy,cswiercz/sympy,chaffra/sympy,sahmed95/sympy,hargup/sympy,ChristinaZografou/sympy,farhaanbukhsh/sympy,VaibhavAgarwalVA/sympy,abhiii5459/sympy,shipci/sympy,cswiercz/sympy,dqnykamp/sympy,iamutkarshtiwari/sympy,jaimahajan1997/sympy,yukoba/sympy,asm666/sympy,AunShiLord/sympy,sunny94/temp,iamutkarshtiwari/sympy