Skip to content

Commit

Permalink
update v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
houpc committed Feb 23, 2024
1 parent 6f8bb32 commit fae5efa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "FeynmanDiagram"
uuid = "e424a512-dbd9-41ff-9883-094748823e72"
authors = ["Kun Chen", "Pengcheng Hou", "Daniel Cerkoney"]
version = "1.0.0"
version = "1.0.1"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
8 changes: 4 additions & 4 deletions src/frontend/frontends.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module FrontEnds

import ..ComputationalGraphs as IR
import ..ComputationalGraphs
import ..ComputationalGraphs: Graph, FeynmanGraph, _dtype
import ..QuantumOperators
import ..Taylor
Expand Down Expand Up @@ -134,11 +134,11 @@ function leafstates(leaf_maps::Vector{Dict{Int,G}}, labelProd::LabelProduct) whe
for idx in 1:len_leaves
g = leafmap[idx]
vertices = g.properties.vertices
if IR.diagram_type(g) == IR.Interaction
if ComputationalGraphs.diagram_type(g) == ComputationalGraphs.Interaction
In = Out = vertices[1][1].label
push!(leafType[ikey], 0)
push!(leafLoopIndex[ikey], 1)
elseif IR.diagram_type(g) == IR.Propagator
elseif ComputationalGraphs.diagram_type(g) == ComputationalGraphs.Propagator
if (Op.isfermionic(vertices[1]))
In, Out = vertices[2][1].label, vertices[1][1].label
# push!(leafType[ikey], g.orders[1] * 2 + 1)
Expand Down Expand Up @@ -197,7 +197,7 @@ function leafstates(leaf_maps::Vector{Dict{Int,G}}, maxloopNum::Int) where {G<:G

for idx in 1:len_leaves
leaf = leafmap[idx]
@assert IR.isleaf(leaf)
@assert ComputationalGraphs.isleaf(leaf)
diagId, leaf_orders = leaf.properties, leaf.orders
loopmom = copy(diagId.extK)
len = length(loopmom)
Expand Down

0 comments on commit fae5efa

Please sign in to comment.