Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

Phi4tools

Guides

  • Phi4tools

Tech Notes

  • Feynman Diagram Evaluation
  • Perturbative Series Generation

Symbols

  • BubbleSubdiagram
  • CountLoops
  • DeriveAndWriteExplicit
  • DrawGraph
  • ExternalMomentum
  • InformationDiagram
  • IntegrandDiagram
  • Momentum
  • MomVars
  • NComponents
  • NickelIndex
  • Propagator
  • SquareSubdiagram
  • SunsetSubdiagram
  • SymmetryFactorDiagram
  • TadSunsetSubdiagram
  • TadTriangleBubblesSubdiagram
  • TriangleSubdiagram
  • ValueDiagram
  • VisualizeDiagram
  • WriteExplicit
  • XCubicRatio
GSberveglieri`Phi4tools`
CountLoops
​
CountLoops
[integrand]
gives the number of effective loop of a integrand, i.e. the number of internal momenta on which the integrand has to be integrated on.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
In[1]:=
Needs["GSberveglieri`Phi4tools`"]
The diagrams with 5 quartic vertices and two external legs have 5 loops
In[2]:=
CountLoops
/@
IntegrandDiagram
[2,0,5]
Out[2]=
{5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5}
After the substitutions, the number of residual loops is greatly reduced
In[3]:=
CountLoops
/@
IntegrandDiagram
[2,0,5,"Substitutions""Analytics"]
Out[3]=
{0,0,2,1,2,1,2,1,2,2,2,2,1,1,2,2,2,2,3}
CountLoops
can be applied to the output of
WriteExplicit
In[4]:=
integ=
IntegrandDiagram
[4,0,5,10,"Substitutions""Analytics"]​​
CountLoops
[integ],
CountLoops

WriteExplicit
[integ]
Out[4]=
2ℬ[[2]][[2]]
2
[[1]+[2]]
[-[1]-[2],[1],[2]]
Out[4]=
{2,2}
SeeAlso
IntegrandDiagram
 
▪
WriteExplicit
 
▪
DeriveAndWriteExplicit
 
▪
Momentum
 
▪
MomVars
TechNotes
▪
Feynman Diagram Evaluation
RelatedGuides
▪
Phi4tools
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com