Skip to content

A converged nonlinear solver can return the wrong pressure if its rapidity grid misses part of the thermal state. Solve the uniform repulsive Lieb–Liniger gas at c=1.5c=1.5, T=0.7T=0.7, μ=0.6\mu=0.6, with ℏ=2m=kB=1\hbar=2m=k_B=1. Compute the pressure, which equals minus the grand potential per unit length, and check it by measuring how density and energy respond to changing the inputs.

Submit a pressure and an independent density

Section titled “Submit a pressure and an independent density”

Independent task. Use c=1.5,T=0.7,μ=0.6c=1.5,T=0.7,\mu=0.6 and units ℏ=2m=kB=1\hbar=2m=k_B=1. Solve the nonlinear equation below, compare at least two rapidity ranges and two quadrature orders, and obtain the density from the dressed linear equation. Compare it with a centred pressure derivative using two chemical-potential increments. Reproducible gas solver

Changed setting. First send cc to infinity, then instead lower TT at finite coupling. Predict when the convolution vanishes and when the occupied rapidity edges become hard to resolve. Give a distinct accuracy check for each change.

Use the infinite uniform gas, k∈Rk\in\mathbb R, and kernel K(d)=c/[π(c2+d2)]K(d)=c/[\pi(c^2+d^2)]. Define g(k)=Tlog⁡[1+e−ϵ(k)/T]g(k)=T\log[1+e^{-\epsilon(k)/T}]. The Yang–Yang equations in this normalization are

ϵ=k2−μ−K∗g,p=∫Rg(k) dk2π.\epsilon=k^2-\mu-K*g,\qquad p=\int_{\mathbb R}g(k)\,\frac{dk}{2\pi}.

On a symmetric interval [−B,B][-B,B] use Gauss–Legendre nodes and weights and stop when the infinity norm of one fixed-point update minus the current iterate is below 10−1210^{-12}. Evaluate the soft logarithm by a stable log-sum-exp. The gas solver exposes this calculation as the function gas, with arguments temperature, chemical potential, coupling, cutoff and node count. Yang and Yang, §§IV–V, Eqs. (15)–(26), equilibrium equation and pressure

Compare the numerical answers and convergence tests
Cutoff BBNodesPressureDressed density
3320.31925889600.3776994596
5320.31925502310.3776906612
5640.31925908900.3776997870
7960.31925908890.3776997868

The four nonlinear residuals are all below 6×10−136\times10^{-13}. Increasing the interval at fixed node count first made the pressure less accurate. Design one pair varying only mesh resolution and one varying only the cutoff at comparable central resolution. Report the differences relative to the last row and explain what the residual alone missed.

Second observable. Let ϑ=1/(1+eϵ/T)\vartheta=1/(1+e^{\epsilon/T}). Differentiation at fixed c,Tc,T gives Z=−∂μϵ=1+K∗(ϑZ)Z=-\partial_\mu\epsilon=1+K*(\vartheta Z) and hence n=∂μp=∫ϑZ dk/(2π)n=\partial_\mu p=\int\vartheta Z\,dk/(2\pi). Solve this linear system independently of pressure differencing. With (B,N)=(7,96)(B,N)=(7,96) the centred difference of pressures at μ±0.01\mu\pm0.01 gives 0.37770297160.3777029716. At half-width 0.0010.001 it gives 0.37769981860.3776998186. The discrepancy with the dressed density shrinks by about 100100, consistent with the second-order difference.

Changed inputs. At c→∞c\to\infty the kernel vanishes and a single scalar quadrature suffices. At lower TT the edges of ϑ\vartheta sharpen instead. Justify a new resolution using changes in the dressed density as well as pressure, before interpreting a thermal trend. A fixed mesh that worked at T=0.7T=0.7 supplies no error estimate in the cold limit.

Measure the response to changing the interaction

Section titled “Measure the response to changing the interaction”

Transfer exercise. Hold T,μT,\mu fixed and change the physical coupling cc. Compute a centered pressure derivative pcp_c. Can you predict its sign from the Hamiltonian and check its value with the energy density?

Compare the pressure derivative with the energy in occupied rapidities

In field notation the interaction is c∫dx ψ†2ψ2c\int dx\,\psi^{\dagger 2}\psi^2. Differentiating the grand canonical trace gives pc=−⟨ψ†2ψ2⟩p_c=-\langle\psi^{\dagger 2}\psi^2\rangle. Increasing repulsion lowers the pressure at fixed chemical potential in this state. The observable on the right counts local pairs per squared length.

The units provide a second route. Under a change of momentum scale by aa, TT and μ\mu scale by a2a^2, cc by aa and pp by a3a^3. Differentiate this scaling relation and use e=Ts+μn−pe=Ts+\mu n-p, with s=∂Tps=\partial_T p and n=∂μpn=\partial_\mu p. The result and the independent rapidity integral are

p=2e+cpc,e=∫Rk2ϑ(k)Z(k)2π dk.p=2e+c p_c,\qquad e=\int_{\mathbb R} k^2\frac{\vartheta(k)Z(k)}{2\pi}\,dk .

At the lab inputs and (B,N)=(7,96)(B,N)=(7,96), e=0.2002705705e=0.2002705705. Using coupling steps 0.010.01 and 0.0010.001 gives slopes −0.05419008-0.05419008 and −0.05418806-0.05418806. The discrepancies in the pressure identity are 3.07×10−63.07\times10^{-6} and 3.06×10−83.06\times10^{-8}. Keeping T/c2T/c^2 constant instead would measure a different derivative. Run the pressure, density and interaction checks

  • C. N. Yang and C. P. Yang. “Thermodynamics of a One-Dimensional System of Bosons with Repulsive Delta-Function Interaction.” Journal of Mathematical Physics 10 (1969), 1115–1122. DOI