Skip to content

FunctionalDiagrams 2.5.0

Choose a tag to compare

@n4sd4q n4sd4q released this 29 Oct 21:58
· 72 commits to main since this release

FunctionalDiagrams 2.5.0 — Feynman diagrams from functional derivatives.

This release adds an update check and makes the calculations faster. Loaded in a notebook, the package tells you when a
newer release is out. The expressions are the same as in 2.4.0, and the benchmark computes them in about half the time.
In the pictures, four external points are drawn at the corners in the order given, and the blobs are filled by one rule.
There is one new function, FunctionalDiagramsUpdateCheck, with its setting $FunctionalDiagramsUpdateCheck, and two
new values of options, "ExternalOrder" -> "Uncrossed" and "Fill" -> "Dotted". No public name is removed or
renamed, so code written for 2.4.0 runs unchanged. Several kinds of pictures look different: four-point functions whose
channel joins opposite corners, the trees of vertex functions, boxes, and the names of blobs in Mathematica. 133 public
names, 862 tests, all passing.

New in this version

  • An update check at load. In a notebook (never in a script), the package asks GitHub for its latest release at most
    once a day, in the background. If that release is newer, the banner gets a third line with its version, a link to what
    is new and the PacletInstall line of its paclet. Every failure is silent, and nothing is asked when $AllowInternet
    is False. $FunctionalDiagramsUpdateCheck = False before Needs turns the check off, and
    FunctionalDiagramsUpdateCheck[] checks by hand.
  • "ExternalOrder" -> "Uncrossed" (also {"Uncrossed", {x1, ...}}). Of the order given, the order with the labels
    on the right exchanged and the order with the labels on the top exchanged, each diagram with four external points
    takes the first whose lines, taken straight, cross least; the labels move with their legs. The parquet decomposition
    can be drawn channel by channel with it.
  • "Fill" -> "Dotted" for DeclareBlob: staggered dots about 0.14 units apart, sparser than the hatching, kept
    inside the outline, in Mathematica and in TikZ (without the patterns library). The documents draw the fully
    irreducible vertex Γ_irr with it.

Faster

The 48 cases of Development/benchmark.wl, the test suite, the figures of the showcase and the examples of the manual
give the same results byte for byte, timings aside. The benchmark takes 68 s instead of 137, and its slowest case (Φ of
the Nambu field with the pairing terms at fourth order) 20 s instead of 75. The test suite takes 64 s instead of 80 and
the showcase script 132 s instead of 155. The Green function of the electron gas at fifth order (8162 diagrams) takes
18.5 s instead of 25.4. The tests of irreducibility, the Wick sums, the canonical form, copies of a term and delta
functions all do less work, and the working symbols are removed once nothing refers to them: one full vertex of the
electron gas at fourth order no longer leaves 98 000 symbols and 37 MB in the kernel.

Pictures

  • Four external points at the corners in the order given, for bosons too. A diagram whose channel joins opposite
    corners is now drawn crossed, its two legs put back as an X just outside it. Before, the general layout of bosons
    exchanged the two labels on the right (the channel t of φ⁴ theory). "Uncrossed" gives the planar pictures.
  • Boxes. The lines of a box leave from its corners, as those of a triangle did. A point that is twice a port of one
    blob (χ = L(z₁, z₁; z₂, z₂)) stands outside the two corners of a side. A box joined by three corners to one vertex,
    Γ⁽⁴⁾ in the Schwinger–Dyson equation of φ⁴ theory, is turned by 45 degrees and drawn symmetric about the axis.
  • Trees. The vertex functions of the trees of ConnectedFunctionFromVertices are cross-hatched discs, and any other
    undeclared factor of three or more labels is hatched: no grey blob is left unless "Fill" -> "Grey" is asked for.
    Trees whose leaves are free ends (the shapes of W⁽ⁿ⁾) are drawn as trees, symmetric when the tree is. The arrow of a
    line from such a disc is in the middle of the part that is seen.
  • Names of blobs in Mathematica are read from their LaTeX. "\\scriptstyle W^{(4)}" is no longer written
    "scriptstyleW(4)", and an overline is drawn (Γ_ph̄). The TikZ code is unchanged.

Documents

  • One rule for the fills of the blobs in every document: the fully irreducible vertex Γ_irr dotted, the irreducible
    parts hatched, the full vertex functions cross-hatched, and the correlation and response functions white.
  • Every code block of the showcase and every example of the manual now gives what follows it; run in order in one
    session, the showcase's code runs as printed. Γ⁽⁴⁾ of φ⁴ theory is shown as DiagramPlot draws it, then with
    "Uncrossed".
  • The 1PI action is written in one form for bosons and fermions, S + ½Tr ln S'' + Γ₁ (fermions: S − ½Tr ln(−S'') + Γ₁).
    The 2PI action with fermion means is written as that of bosons, with D⁻¹[Ψ̄, Ψ], the inverse propagator in the
    presence of the means.
  • A wiki with practical guides and a FAQ. Every block of code on
    its pages is checked to give what the page shows. The README gives the installation before the first example.

Install

The package needs Mathematica 12.1 or later.

PacletInstall["https://github.com/n4sd4q/FunctionalDiagrams/releases/download/v2.5.0/FunctionalDiagrams-2.5.0.paclet"]
Needs["FunctionalDiagrams`"]

or download FunctionalDiagrams-2.5.0.paclet below and run PacletInstall["/path/to/FunctionalDiagrams-2.5.0.paclet"].
The paclet contains the showcase, the reference manual and the guided tour; the PDFs are also attached here. The full
list of changes is in the
CHANGELOG.