Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:language_reference:objects:responsefunction:functions:calculatehybridizationfunction [2024/12/24 00:14] Maurits W. Haverkortdocumentation:language_reference:objects:responsefunction:functions:calculatehybridizationfunction [2024/12/24 00:19] (current) Maurits W. Haverkort
Line 20: Line 20:
  
 ### ###
-description text+The example below uses some arbitrary definition for $G_0$ and $\Sigma$. Examples where these functions are used can be found in the tutorials.
 ### ###
  
 ==== Input ==== ==== Input ====
 <code Quanty Example.Quanty> <code Quanty Example.Quanty>
--- some example code+a = {0, 0, -2,0,2} 
 +b = {   1,  1,1,1} 
 +G0 = ResponseFunction.New( { a, b, mu=0, type="And", name="G0"} ) 
 + 
 +a = {0,0,0,0} 
 +b = {0.1,0.1,0.1} 
 +Sigma = ResponseFunction.New( { a, b, mu=0, type="Tri", name="Sigma"} ) 
 + 
 +GHyb = ResponseFunction.CalculateHybridizationFunction(G0,Sigma) 
 + 
 +print("The non interacting Green's function"
 +print(G0) 
 +print("The self energy"
 +print(Sigma) 
 +print("The bath Green's function defining the hybridization function for the full interacting bath"
 +print(GHyb)
 </code> </code>
  
 ==== Result ==== ==== Result ====
 <file Quanty_Output> <file Quanty_Output>
-text produced as output+The non interacting Green's function 
 +{ { 0 , 0 , -2 , 0 , 2 } ,  
 +  { 1 , 1 , 1 , 1 } , 
 +  name = G0 , 
 +  mu = 0 , 
 +  type = And } 
 +The self energy 
 +{ { 0 , 0 , 0 , 0 } ,  
 +  { 0.1 , 0.1 , 0.1 } , 
 +  name = Sigma , 
 +  mu = 0 , 
 +  type = Tri } 
 +The bath Green's function defining the hybridization function for the full interacting bath 
 +{ { 0 , 0 , -2.0049999999223 , -0.16180339887499 , -0.14261254104408 , -0.14010864678943 , -0.061803398874989 , -0.0024961056676115 , 0.0024961056676115 , 0.061803398874989 , 0.14010864678943 , 0.14261254104408 , 0.16180339887499 , 2.0049999999223 } ,  
 +  { 1 , 0.99874921790792 , 0.37174803446018 , 0.0238150684481 , 0.026242558358305 , 0.60150095500755 , 0.03527279934937 , 0.03527279934937 , 0.60150095500755 , 0.026242558358305 , 0.0238150684481 , 0.37174803446018 , 0.99874921790792 } , 
 +  name = GBath , 
 +  mu = 0 , 
 +  type = And }
 </file> </file>
  
Print/export