CffError

Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.

CffError

class CffError

Failure while constructing a Cross-Free Family representation.

Examples

from symbolica import S, E
from symbolica.community import hepkit as hep
model = hep.Model.phi4()
process = model.process(["phi", "phi"], ["phi", "phi"])
result = process.generate_diagrams(loops=1)
diagram = result.diagrams[0]
try:
    diagram.build_cff(contracted_edges=[999999])
except hep.CffError as error:
    message = str(error)