rm imp},\end{aligned}$$ ]{} where $\hat{H}_{\rm bath}=\sum_{lm\alpha}\hat{\Psi}^{\dagger}_{l\alpha}h_{lm}\hat{\Psi}_{m\alpha}$ describes an arbitrary single-particle Hamiltonian, with fermionic or bosonic creation (annihilation) operator $\hat{\Psi}^{\dagger}_{l\alpha}$ ($\hat{\Psi}_{l\alpha}$) for the $l$-th bath mode with spin $\alpha$. For simplicity, we consider a noninteracting spin-1/2 bath with $\alpha=\uparrow,\downarrow$ [^1]. The Hamiltonian $\hat{H}_{\rm int}=\hat{\bf s}_{\rm imp}\cdot\hat{\bf \Sigma}$ represents a generic interaction between the impurity and the bath with $\hat{\bf s}_{\rm imp}=\hat{\boldsymbol \sigma}_{\rm imp}/2$ being the impurity spin-1/2 operator. We define the bath-spin operator including couplings as $\hat{\Sigma}^{\gamma}=\sum_{l}g_{l}^{\gamma}\hat{\sigma}_{l}^{\gamma}/2$ with $\hat{\sigma}_{l}^{\gamma}=\sum_{\alpha\beta}\hat{\Psi}_{l\alpha}^{\dagger}\sigma^\gamma_{\alpha\beta}\hat{\Psi}_{l\beta}$. The interaction strengths $g_{l}^{\gamma}$ are arbitrary and can be anisotropic and long-range. We also include the impurity Hamiltonian as $\hat{H}_{\rm imp}=-h_z\hat{s}_{\rm imp}^{z}$. Paradigmatic examples having the interaction form $\hat{H}_{\rm int}$ include the Kondo-type Hamiltonians [@KJ64] where the coupling $g_{l}^\gamma$ is local, and the central spin model [@JS03] where an interaction is long-range while $\hat{H}_{\rm bath}$ is frozen.

To construct the canonical transformation, we observe that the Hamiltonian has a parity symmetry, $[\hat{H},\hat{\mathbb P}]=0$, with $\hat{\mathbb{P}}=\hat{\sigma}_{\rm imp}^{z}\hat{\mathbb P}_{\rm bath}$. Here, $\hat{\mathbb P}_{\rm bath}=e^{(i\pi/2)(\sum_{l}\hat{\sigma}^{z}_{l}+\hat{N})}$ is the parity operator acting on the bath, where $\hat{N}$ is the total particle number. The symmetry follows from the fact that $\hat{
rm imp},\end{aligned}$$ ] { } where $ \hat{H}_{\rm bath}=\sum_{lm\alpha}\hat{\Psi}^{\dagger}_{l\alpha}h_{lm}\hat{\Psi}_{m\alpha}$ describes an arbitrary single - particle Hamiltonian, with fermionic or bosonic creation (annihilation) hustler $ \hat{\Psi}^{\dagger}_{l\alpha}$ ($ \hat{\Psi}_{l\alpha}$) for the $ l$-th bathtub mode with spin $ \alpha$. For ease, we study a noninteracting spin-1/2 bath with $ \alpha=\uparrow,\downarrow$ [ ^1 ]. The Hamiltonian $ \hat{H}_{\rm int}=\hat{\bf s}_{\rm imp}\cdot\hat{\bf \Sigma}$ represents a generic interaction between the impurity and the bathroom with $ \hat{\bf s}_{\rm imp}=\hat{\boldsymbol \sigma}_{\rm imp}/2 $ being the impurity spin-1/2 hustler. We define the bath - spin operator including coupling as $ \hat{\Sigma}^{\gamma}=\sum_{l}g_{l}^{\gamma}\hat{\sigma}_{l}^{\gamma}/2 $ with $ \hat{\sigma}_{l}^{\gamma}=\sum_{\alpha\beta}\hat{\Psi}_{l\alpha}^{\dagger}\sigma^\gamma_{\alpha\beta}\hat{\Psi}_{l\beta}$. The interaction strengths $ g_{l}^{\gamma}$ are arbitrary and can be anisotropic and long - compass. We also include the impurity Hamiltonian as $ \hat{H}_{\rm imp}=-h_z\hat{s}_{\rm imp}^{z}$. Paradigmatic examples having the interaction form $ \hat{H}_{\rm int}$ admit the Kondo - type Hamiltonians [ @KJ64 ] where the coupling $ g_{l}^\gamma$ is local, and the central tailspin model [ @JS03 ] where an interaction is long - range while $ \hat{H}_{\rm bath}$ is frozen. 

 To construct the canonic transformation, we observe that the Hamiltonian has a parity symmetry, $ [ \hat{H},\hat{\mathbb P}]=0 $, with $ \hat{\mathbb{P}}=\hat{\sigma}_{\rm imp}^{z}\hat{\mathbb P}_{\rm bath}$. Here, $ \hat{\mathbb P}_{\rm bath}=e^{(i\pi/2)(\sum_{l}\hat{\sigma}^{z}_{l}+\hat{N})}$ is the parity hustler acting on the bath, where $ \hat{N}$ is the total particle number. The symmetry follow from the fact that $ \hat {
rm lmp},\end{aligned}$$ ]{} where $\hat{M}_{\rm bath}=\sum_{lm\alpkq}\hat{\Psm}^{\dagger}_{m\alpha}h_{lo}\hat{\Psi}_{m\alpha}$ describes an acbiteary wingle-particle Hamiltovian, with fermionuc oc bosonic creation (annihljatikk) opexavor $\hat{\Psi}^{\dagget}_{l\alpha}$ ($\hat{\Pvi}_{l\alpha}$) for tve $l$-ch bath mode with spin $\alpha$. For sim[licity, wf consider a njninuerwctihg spin-1/2 bath with $\alpha=\uparrow,\downzrrow$ [^1]. Uhe Hamiltonian $\hay{H}_{\rm int}=\hat{\bf s}_{\rm imp}\cdot\hwt{\bf \Sigma}$ represents w generic ibterwxtion betweev the impugnty and the bath with $\hat{\bf s}_{\rm imp}=\hat{\boldrymbok \sigma}_{\rm ump}/2$ bfhng the impnrity fpin-1/2 operatov. We dexine thr bath-spin opevator inxluding couplings as $\iat{\Sigma}^{\gamma}=\sum_{l}g_{l}^{\gwmma}\hat{\sicmc}_{l}^{\gamma}/2$ with $\hat{\sigma}_{o}^{\gqmma}=\som_{\alpva\begq}\hag{\Psj}_{l\elpga}^{\daggfr}\smgma^\gamma_{\allha\beta}\hat{\Pwi}_{l\beta}$. The interacuiog strengths $g_{l}^{\famma}$ wrq arbitrary and can be anisotropic and nonf-range. We also include rhe impurity Hamiltonlan as $\hae{H}_{\rm imp}=-h_z\hat{s}_{\rm imp}^{z}$. Paradigmatic examples havinc the knttrqctiov flrm $\hat{H}_{\rm int}$ include the Kondo-type Hamiltonyznx [@LJ64] where the cjupling $g_{l}^\gsmla$ ys local, and jhe cencdam spin model [@JS03] whfre an ynterqction is lonb-range while $\hat{H}_{\rm bath}$ is frozen.

To cousteuct the canonical transformacion, wg obsetve that the Hamiltoniau has z parity sylmetry, $[\haf{F},\hat{\mathbb P}]=0$, witf $\hst{\kathbb{P}}=\hat{\sigma}_{\rm imp}^{z}\hat{\mwthbb P}_{\rm batk}$. Here, $\hxt{\majhbb P}_{\ri bath}=e^{(i\pi/2)(\dum_{l}\hat{\sigma}^{z}_{l}+\hat{N})}$ is thf parnty o[erator aching on the bath, where $\hat{N}$ is vie total partocne tumber. Tke symketry follows from the fact that $\hct{
rm imp},\end{aligned}$$ ]{} where $\hat{H}_{\rm bath}=\sum_{lm\alpha}\hat{\Psi}^{\dagger}_{l\alpha}h_{lm}\hat{\Psi}_{m\alpha}$ describes single-particle with fermionic bosonic creation (annihilation) $l$-th mode with spin For simplicity, we a noninteracting spin-1/2 bath with $\alpha=\uparrow,\downarrow$ The Hamiltonian $\hat{H}_{\rm int}=\hat{\bf s}_{\rm imp}\cdot\hat{\bf \Sigma}$ represents a generic interaction between the and the bath with $\hat{\bf s}_{\rm imp}=\hat{\boldsymbol \sigma}_{\rm imp}/2$ being the impurity spin-1/2 We the operator couplings as $\hat{\Sigma}^{\gamma}=\sum_{l}g_{l}^{\gamma}\hat{\sigma}_{l}^{\gamma}/2$ with $\hat{\sigma}_{l}^{\gamma}=\sum_{\alpha\beta}\hat{\Psi}_{l\alpha}^{\dagger}\sigma^\gamma_{\alpha\beta}\hat{\Psi}_{l\beta}$. The interaction strengths $g_{l}^{\gamma}$ are arbitrary and can be anisotropic and We also include the impurity Hamiltonian as $\hat{H}_{\rm imp}^{z}$. Paradigmatic examples having interaction form $\hat{H}_{\rm int}$ include Kondo-type [@KJ64] where coupling is and the central model [@JS03] where an interaction is long-range while $\hat{H}_{\rm bath}$ is frozen. To construct the canonical transformation, observe that has a symmetry, P}]=0$, $\hat{\mathbb{P}}=\hat{\sigma}_{\rm imp}^{z}\hat{\mathbb P}_{\rm $\hat{\mathbb P}_{\rm bath}=e^{(i\pi/2)(\sum_{l}\hat{\sigma}^{z}_{l}+\hat{N})}$ is the parity the bath, where $\hat{N}$ is the total particle The symmetry from the fact that $\hat{
rm imp},\end{aligned}$$ ]{} where $\hat{H}_{\rM bath}=\sum_{lm\Alpha}\Hat{\psi}^{\DaGger}_{L\alpHa}h_{lm}\hat{\Psi}_{m\alPHa}$ deScribes an arbitrary singLe-parTiCLe HaMIlToniaN, with feRMiONIc oR bOsOniC cREaTion (aNniHilatioN) operator $\hAt{\PSi}^{\Dagger}_{l\alpha}$ ($\HAt{\psi}_{l\alpha}$) fOr tHe $l$-th bath modE wiTh spin $\AlPha$. fOr simPliCity, wE consiDEr a nonInteractiNg SPin-1/2 batH With $\alpHA=\UpArroW,\downarrow$ [^1]. The HamiLToNIan $\hat{H}_{\rm int}=\haT{\bf s}_{\rm ImP}\CdOT\Hat{\Bf \SIgma}$ represEnTs a geNEric intERaCTIOn bETween the impurIty and the baTH wiTh $\hat{\bF s}_{\Rm iMP}=\hat{\boLdsymBoL \SigMa}_{\rm imp}/2$ beinG the Impurity sPin-1/2 opeRAtor. We dEFine the Bath-spIn oPerAtor INcLuDinG cOUplINgS as $\HAt{\SIgma}^{\gammA}=\sUm_{L}g_{l}^{\gaMma}\hAT{\SIGma}_{l}^{\GamMa}/2$ wiTh $\hat{\Sigma}_{l}^{\gamma}=\suM_{\alPha\bETa}\hAt{\Psi}_{L\alphA}^{\dagGeR}\sigmA^\gamma_{\Alpha\BeTa}\hat{\Psi}_{l\beta}$. ThE intEraction sTreNgThs $G_{l}^{\Gamma}$ ARe arbiTraRy aNd can be AnisotrOPic AnD LONg-Range. We also include ThE IMpUrity HamIltoniAN aS $\hAT{H}_{\rm imp}=-h_Z\hAt{s}_{\Rm imP}^{Z}$. paradIgmaTIc Examples Having THe InTeractiOn Form $\haT{H}_{\Rm iNt}$ iNcludE The KOndo-tyPe HamiltOnianS [@kJ64] where the coupLIng $g_{l}^\gamma$ is lOCaL, ANd THe ceNtrAl spin model [@jS03] whERe an InteRAcTioN Is lonG-rangE wHIlE $\Hat{H}_{\rm bath}$ is frozen.

TO cOnstruCt the Canonical tranSformation, WE OBserve thAt thE haMIltonian has a paRity sYmmetry, $[\hat{h},\Hat{\mathbB P}]=0$, witH $\hat{\mathBb{P}}=\hat{\sigMA}_{\Rm imp}^{z}\haT{\maThbB P}_{\rM baTH}$. heRe, $\hat{\mathbb P}_{\rM BAth}=e^{(I\pI/2)(\sum_{l}\haT{\siGma}^{z}_{l}+\haT{N})}$ iS thE paRitY oPerator acTing on thE bAtH, wHeRe $\hAt{N}$ is THe total pArTicLe NumBer. ThE SymmetRy folLows FrOm THe fAct that $\HAt{
rm imp},\end{aligned}$$ ]{ } where $\ hat{H }_{ \rm  b ath} =\su m_{lm\alpha}\h a t{\P si}^{\dagger}_{l\alpha }h_{l m} \ hat{ \ Ps i}_{m \alpha} $  d e s cri be sanar b it rarysin gle-par ticle Hami lto ni an, with fer m io nic or bos oni c creation ( ann ihilat io n)o perat or$\hat {\Psi} ^ {\dagg er}_{l\al ph a }$ ($\ h at{\Psi } _ {l \alp ha}$) for the $l$ - th bath mode with  spin$\ a lp h a $.For  simplicit y,  we c o nsidera  n o n i nte r acting spin-1 /2 bath wit h  $\ alpha= \u par r ow,\do wnarr ow $  [^ 1]. The Ham ilto nian $\ha t{H}_{ \ rm int} = \hat{\b f s}_{ \rm  im p}\c d ot \h at{ \b f  \S i gm a}$ rep resentsage neric  int e r a c tion  be twee n the  impurity and  th e ba t h w ith $ \hat{ \bfs} _{\rm  imp}= \hat{ \b oldsymbol \sigm a}_{ \rm imp}/ 2$be ing  t he im p urityspi n-1 /2 oper ator. W e  de fi n e th e bath-spin operat or i nc luding c ouplin g sas $\hat{\S ig ma} ^{\g a m ma}=\ sum_ { l} g_{l}^{\ gamma} \ ha t{ \sigma} _{ l}^{\g am ma} /2$  with $\ha t{\sig ma}_{l}^ {\gam m a}=\sum_{\alph a \beta}\hat{\P s i} _ { l\ a lpha }^{ \dagger}\si gma^ \ gamm a_{\ a lp ha\ b eta}\ hat{\ Ps i }_ { l\beta}$. The inter ac tion s treng ths $g_{l}^{\ gamma}$ ar e a rbitrary  and ca n  be anisotropi c and  long-rang e . We als o inc lude the  impurity H amiltoni anas$\h at{ H } _{ \rm imp}=-h_z \ h at{s }_ {\rm im p}^ {z}$. P ara dig mat icex amples ha ving the  i nt er ac tio n for m  $\hat{H }_ {\r mint }$ in c lude t he Ko ndo- ty pe Ham iltonia n s[ @ KJ64 ]wh erethe  c oupli ng $ g _{l }^\gamm a$ is loc al, andth ecentral  spin model [ @J S03] where  a n i nterac t i on is lo ng-range while $\hat{H} _ {\rm ba th} $ isfroz en.

To c ons tructthe canoni cal tr ansfo rm ati o n , weo b se rve  t hat the Ha m i lto nianha s aparitysymmetry, $[\hat{H } ,\h at{\mathbb P} ]=0 $, w i t h$\h a t{ \ mat hb b {P} } = \hat{\sigma}_{\ rm imp}^{z }\ h at {\mathbb P } _{\ rm  bath}$ . Here,  $\ha t {\mathb b P}_{\rm  bath}=e^ {( i\pi / 2 )(\ sum_{l}\ha t{\sigma }^{z}_{l} + \hat{ N }) }$ is  th e pari ty  op erato r acti n g o n the  bath,  w here $ \hat{ N} $ is the  total particle number.  The s ymmet ryfollows f rom the  fact tha t $\ hat{
rm imp},\end{aligned}$$_]{} where_$\hat{H}_{\rm bath}=\sum_{lm\alpha}\hat{\Psi}^{\dagger}_{l\alpha}h_{lm}\hat{\Psi}_{m\alpha}$ describes an_arbitrary single-particle_Hamiltonian,_with fermionic_or_bosonic creation (annihilation)_operator $\hat{\Psi}^{\dagger}_{l\alpha}$ ($\hat{\Psi}_{l\alpha}$)_for the $l$-th bath_mode with spin_$\alpha$._For simplicity, we consider a noninteracting spin-1/2 bath with $\alpha=\uparrow,\downarrow$ [^1]. The Hamiltonian $\hat{H}_{\rm_int}=\hat{\bf_s}_{\rm imp}\cdot\hat{\bf_\Sigma}$_represents_a generic interaction between the_impurity and the bath with_$\hat{\bf s}_{\rm_imp}=\hat{\boldsymbol \sigma}_{\rm imp}/2$ being the impurity spin-1/2 operator._We_define the bath-spin_operator including couplings as $\hat{\Sigma}^{\gamma}=\sum_{l}g_{l}^{\gamma}\hat{\sigma}_{l}^{\gamma}/2$ with $\hat{\sigma}_{l}^{\gamma}=\sum_{\alpha\beta}\hat{\Psi}_{l\alpha}^{\dagger}\sigma^\gamma_{\alpha\beta}\hat{\Psi}_{l\beta}$. The interaction_strengths $g_{l}^{\gamma}$ are arbitrary and can_be anisotropic and_long-range._We_also include the impurity_Hamiltonian as $\hat{H}_{\rm imp}=-h_z\hat{s}_{\rm imp}^{z}$. Paradigmatic_examples having the interaction form $\hat{H}_{\rm_int}$ include the Kondo-type Hamiltonians [@KJ64] where_the coupling $g_{l}^\gamma$ is local, and_the central spin model [@JS03]_where an_interaction is long-range while $\hat{H}_{\rm_bath}$ is frozen.

To_construct the_canonical transformation, we_observe that the Hamiltonian has a_parity symmetry, $[\hat{H},\hat{\mathbb_P}]=0$, with $\hat{\mathbb{P}}=\hat{\sigma}_{\rm imp}^{z}\hat{\mathbb P}_{\rm bath}$._Here,_$\hat{\mathbb P}_{\rm bath}=e^{(i\pi/2)(\sum_{l}\hat{\sigma}^{z}_{l}+\hat{N})}$_is_the_parity operator_acting on the_bath,_where $\hat{N}$_is_the total particle number. The symmetry_follows_from the fact that $\hat{