sfED
TODO: general information
Index
sfED.EigenspacesfED.FockstatessfED.TransitionssfED.getCCdaggerMatsfED.getCdagmatrixsfED.getCmatrixsfED.getCsignsfED.getEpssfED.getEvalEvecssfED.getEvalveclistsfED.getFuckingLarge2partTermsfED.getG0sfED.getGFsfED.getGF2partsfED.getGF2partTermsfED.getHamiltoniansfED.getHoppingsfED.getMatrixElem1ParticlesfED.getMatrixElem2ParticlesfED.getNsfED.getSigmasfED.getSpinsfED.getTmatrixsfED.getUJmatrixsfED.getUdensitysfED.getUnondensitysfED.getZsfED.indexSpinConfigsfED.noSpinConfigsfED.spinConfigsfED.writeEvalContributionssfED.writeEvalContributionsSectorssfED.writeEvalInfosfED.writeGFsfED.writeGF2partsfED.writeGFnormsfED.writeMatrixGnuplotsfED.writeParticleNumberssfED.writeStateInfosfED.writeTransitionsOverlaps
sfED.Eigenspace — MethodEigenspace(eps,tmatrix,Umatrix,Jmatrix,pSimulation.mu,fockstates,pNumerics) Constructor for the Eigenspace struct
sfED.Fockstates — MethodFockstates(norb) Constructor for the Fockstates struct
sfED.Transitions — MethodgetPossibleTransitions(eigenspace,fockstates,flavors,pNumerics,expCutoff)Calculate the overlap elements between all Eigenstates acting on c/c^dagger specified by flavors. The function returns the overlap array and possibleTransitions for cdagger,c for the flavor specified (1=orb1,up, 2=orb1,dn, 3=orb2,up, ....)
sfED.getCCdaggerMat — MethodgetCCdaggerMat(flavor,subspace1,subspace2)Return the creation (flavor>0) or annihilation (flavor<0) matrix for the given flavor and subspaces
sfED.getCdagmatrix — MethodgetCdagmatrix(crea,subspace1,subspace2)Generate the matrix for the creation operator acting on the subspace with N-1,S-1 quantum numbers we act subspace1 * cdag * subspace2 subspace 2 has all basis states with N-1,S-1 because we have previously annihilated one up electron subspace 1 has all basis states with N,S now just determine the transformation when acting the creation operator crea on it crea is the orbital/spin index
sfED.getCmatrix — MethodgetCmatrix(anni::Int64,subspace1, subspace2)Generate the matrix for the annihilation operator acting on the subspace with N,S quantum number we act subspace1 * c * subspace2 subspace 2 has all basis states with N,S subspace 1 has all basis states with N-1,S-dS now just determine the transformation when acting the annihilation operator anni on it anni is the orbital/spin index
sfED.getCsign — MethodgetCsign(i,state)return the sign when creating/annihilating an electron at position i in state.
sfED.getEps — MethodgetEps(pNumerics,pModel)Return the local orbital levels, define them by hand here. Values are perturbed by smallValue TODO: this should be overloaded to accept text file or command line inputs.
sfED.getEvalEvecs — MethodgetEvalEvecs(Hamiltonian)Diagonalize a given Hamiltonian. Eigenvalues will be cast to real, since the Hamiltonian is hermitian.
sfED.getEvalveclist — MethodgetEvalveclist(eps,tmatrix,Umatrix,Jmatrix,mu,fockstates,pNumerics)Create the N,S submatrices of the Hamiltonian, solve it and return the Eigenvalues and Vectors in a List
sfED.getFuckingLarge2partTerm — MethodgetFuckingLarge2partTerm(w1,w2,w3,Em,En,Eo,Ep)Evaluate the Lehmann term for the 2part Green's function
sfED.getG0 — MethodgetG0(eps, tmatrix, w)Construct the noninteracting Green's function from onsite energy eps, hoppings between sites i and j, tmatrix and Matsubara grid w.
sfED.getGF — MethodgetGF(evallist, eveclist, allstates, pModel, pSimulation, pFreq, pNumerics)Evaluation of the Lehmann representation for the interacting finite-temperature Green's function We sum over all Eigenstates evallist with electron number N and all other eigenstates n2 with electron number N-1 Since we have spin degeneracy, we only calculate the up GF, so we annihilate one up spin, so we also only sum over all S-1 states for given S(n1)
sfED.getGF2part — MethodgetGF2part(evallist, eveclist, allstates, pModel, pSimulation, pFreq, pNumerics)Evaluation of the Lehmann representation for the interacting finite-temperature 2-particle Green's function We sum over all Eigenstates evallist with electron number N and all other eigenstates connected by c and c^dagger We choose the definition G^(2)up,dn = <T c^dagup(t1) cup(t2) c^dagdn(t3) c_dn(0) >
sfED.getGF2partTerm — MethodgetGF2partTerm(transitions,pFreq, pNumerics)Evaluate one of the six terms for the GF, the only difference is where to read out the overlaps and the permutation of the frequencies
sfED.getHamiltonian — MethodgetHamiltonian(eps,tmatrix,Umatrix,Jmatrix,states)Constructs hamiltonian from onsite energies eps, hoppings tmatrix, coulomb interactions Umatrix and Jmatrix over precomputed states.
sfED.getHopping — MethodgetHopping(istate, jstate, tmatrix)return the hopping contribution for states <i| |j>
sfED.getMatrixElem1Particle — MethodgetMatrixElem1Particle(c1, a1, istate, jstate)Calculate the matrix element for a one particle operator given the creation and annihilation operator with indices c1 and a1 repsectively.
sfED.getMatrixElem2Particle — MethodgetMatrixElem2Particle(c1,c2,a3,a4,istate,jstate)Calculate the matrix element for a two particle operator given the creation and annihilation operators with indices c1, c2 and a3,a4.
sfED.getN — MethodgetN(eigenspace)Calculate expectation value of occupation
sfED.getSigma — MethodgetSigma(G0, G)Calculate the Selfenergy from G0 and G
sfED.getSpin — MethodgetSpin(states)total spin S of state.
sfED.getTmatrix — MethodgetTmatrix(pModel)Return the hoppingmatrix, defined by hand here TODO: this should be overloaded to accept text file or command line inputs.
sfED.getUJmatrix — MethodgetUJmatrix(pModel)Return the Coulomb interaction matrices, defined by hand here TODO: this should be overloaded to accept text file or command line inputs.
sfED.getUdensity — MethodgetUdensity(state, Umatrx, Jmatrix)return the density density part of the Coulomb interaction contribution
sfED.getUnondensity — MethodgetUnondensity(istate, jstate, Jmatrix)return the spin-flip and pair-hopping part of the interaction contribution
sfED.getZ — MethodgetZ(evallist)Calculate partition function from the eigenvalues in evallist.
sfED.indexSpinConfig — MethodindexSpinConfig(S,n,Nmax)Index i corresponding to a spin config S for given n and nMax
Example
julia> indexSpinConfig(spinConfig(2,2,4),2,4)
2sfED.noSpinConfig — MethodnoSpinConfig(n, Nmax)Number of configurations with different total spin S possible for given n and Nmax.
Examples
julia> sfED.noSpinConfig(2,4)
3sfED.spinConfig — MethodspinConfig(i,n,Nmax)i-th possible total spin value S for given n, nMax. i starts at 1
Examples
julia> sfED.spinConfig(1,2,4)
-2
julia> sfED.spinConfig(2,2,4)
0
julia> sfED.spinConfig(3,2,4)
2sfED.writeEvalContributions — MethodwriteEvalContributions(file, evalContributions)write the weight contribtions of each Eigenstate sorted by Eigenenergy
sfED.writeEvalContributionsSectors — MethodwriteEvalContributionsSectors(filename, evalContributions)write the weight contribtions of each Eigenstate sorted by N,S quantum numbers
sfED.writeEvalInfo — MethodwriteEvalInfo(evallist, eveclist, allstates)Write the Eigenvalues and some info
sfED.writeGF — MethodwriteGF(filename, G, w)Writes a Green's function G(norb,norb,nw) in human readable (fixed column width format) form into a file. mgrid is the associated Matsuabra grid (as indices or evaluated).
sfED.writeGF2part — MethodwriteGF2part(filename, G, w)Writes a Green's function G(nw,nw,nw) in human readable (fixed column width format) form into a file. mgrid is the associated Matsuabra grid (as indices or evaluated).
sfED.writeGFnorm — MethodwriteGFnorm(gfdiagnorm)Write the calculated normalization of the diagonal Green's function elements
sfED.writeMatrixGnuplot — MethodwriteMatrixGnuplot(filename, matrix)Writes a Matrix matrix(norb1,norb2) in human readable (fixed column width format) form into a file. Only writes the real part and writes a linebreak after each row so that Gnuplot sp w pm3d works .
sfED.writeParticleNumbers — MethodwriteParticleNumbers(n_ms)Write the occupation numbers
sfED.writeStateInfo — MethodwriteStateInfo(allstates)Write all states and N S quantum numbers
sfED.writeTransitionsOverlaps — MethodwriteTransitionsOverlaps(filename,overlaps)Write out the overlap elements between all Eigenstates acting on c/c^dagger