-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed086bd
commit 34e0400
Showing
29 changed files
with
458 additions
and
708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
import QEDbase: propagator | ||
|
||
function _scalar_propagator(K::QEDbase.AbstractFourMomentum, mass::Real) | ||
function _scalar_propagator(K::AbstractFourMomentum, mass::Real) | ||
return one(mass) / (K * K - mass^2) | ||
end | ||
|
||
function _scalar_propagator(K::QEDbase.AbstractFourMomentum) | ||
function _scalar_propagator(K::AbstractFourMomentum) | ||
return one(getT(K)) / (K * K) | ||
end | ||
|
||
function _fermion_propagator(P::QEDbase.AbstractFourMomentum, mass::Real) | ||
function _fermion_propagator(P::AbstractFourMomentum, mass::Real) | ||
return (slashed(P) + mass * one(DiracMatrix)) * _scalar_propagator(P, mass) | ||
end | ||
|
||
function _fermion_propagator(P::QEDbase.AbstractFourMomentum) | ||
function _fermion_propagator(P::AbstractFourMomentum) | ||
return (slashed(P)) * _scalar_propagator(P) | ||
end | ||
|
||
function QEDbase.propagator(particle_type::BosonLike, K::QEDbase.AbstractFourMomentum) | ||
return _scalar_propagator(K, QEDbase.mass(particle_type)) | ||
function propagator(particle_type::BosonLike, K::AbstractFourMomentum) | ||
return _scalar_propagator(K, mass(particle_type)) | ||
end | ||
|
||
function QEDbase.propagator(particle_type::Photon, K::QEDbase.AbstractFourMomentum) | ||
function propagator(particle_type::Photon, K::AbstractFourMomentum) | ||
return _scalar_propagator(K) | ||
end | ||
|
||
function QEDbase.propagator(particle_type::FermionLike, P::QEDbase.AbstractFourMomentum) | ||
return _fermion_propagator(P, QEDbase.mass(particle_type)) | ||
function propagator(particle_type::FermionLike, P::AbstractFourMomentum) | ||
return _fermion_propagator(P, mass(particle_type)) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.