Finite-temperature BCS gap equation in Mathematica

Calculate the anomalous contraction for the BCS Hamiltonian and use it in the self-consistent gap equation.


Download Mathematica notebook · Manual, chapter 11

Start a fresh Mathematica kernel with SNEG installed. Evaluate the cells in order.

Needs["sneg`"]

BCS gap equation at finite temperature

The thermal anomalous average F k = 〈 c - k ↓ ⁢ c k ↑ 〉 = Δ 2 ⁢ E k ⁢ tanh ⁢ E k 2 ⁢ T gives the gap equation Δ = g N s ∑ k F k . Here it is solved for a band with four momenta, ξ k = - 2 ⁢ cos ⁢ k + 1 / 2 , and g = 3 , at T = 1 / 10 :

snegfermionoperators[ck];
snegrealconstants[Dl, x, T];
snegrealfunctions[xi];
snegmomentumindexes[{k}, Ns];
hk = First[bdghamiltonian[sum[xi[k] number[ck[k]] - Dl (nc[ck[CR, k, UP], ck[CR, -k, DO]] + nc[ck[AN, -k, DO], ck[AN, k, UP]]), {k}], {ck}, k]] /. xi[-k] -> xi[k];
F = FullSimplify[ExpToTrig[gaussianaverage[nc[ck[AN, -k, DO], ck[AN, k, UP]], hk, {ck}, T, "Momentum" -> k] /. xi[k] -> x], Dl > 0 && T > 0 && Element[x, Reals]]
Out[6]=
(Dl Tanh[Sqrt[Dl^2+x^2]/(2 T)])/(2 Sqrt[Dl^2+x^2])
FindRoot[Dl == 3/4 Sum[F /. {x -> -2 Cos[q] + 1/2, T -> 1/10}, {q, {0, Pi/2, Pi, 3 Pi/2}}], {Dl, 1}]
Out[7]=
{Dl->1.0297}

The same gap follows from the self-consistent mean-field solution of the attractive Hubbard ring with meanfieldsolve.