Skip to content

Commit

Permalink
v0.2.3 update regularization parameterization of fourier mass matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
cohensbw committed Oct 3, 2023
1 parent 669a58c commit ffbe52b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SmoQyDQMC"
uuid = "00e12d65-277b-447e-9c1d-a17422dd36f5"
authors = ["Benjamin Cohen-Stead <[email protected]>"]
version = "0.2.2"
version = "0.2.3"

[deps]
BinningAnalysis = "b7192094-8e58-5052-a244-180a858778ee"
Expand Down
4 changes: 2 additions & 2 deletions src/ElectronPhonon/FourierMassMatrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Given a regularization value of `reg`, represented by the symbol ``m_{\rm reg}``
the fouerier mass matrix in frequency space, where it is diagonal, are given by
```math
\tilde{M}_{\omega,\omega} =
\Delta\tau\frac{(1+m_{{\rm reg}})M\Omega^{2}+\frac{4M}{\Delta\tau^{2}}\sin^{2}\big(\frac{\pi\omega}{L_{\tau}}\big)}{(1+m_{{\rm reg}})M\Omega^{2}},
\Delta\tau\frac{(1+m_{{\rm reg}}^2)M\Omega^{2}+\frac{4M}{\Delta\tau^{2}}\sin^{2}\big(\frac{\pi\omega}{L_{\tau}}\big)}{(1+m_{{\rm reg}}^2)M\Omega^{2}},
```
where ``\omega \in [0, L_\tau)`` corresponds to the frequency after fourier transforming from imaginary time to frequency space,
and ``L_\tau`` is the length of the imaginary time axis.
Expand Down Expand Up @@ -88,7 +88,7 @@ function FourierMassMatrix(electron_phonon_parameters::ElectronPhononParameters{
# CHANGE IN FUTURE: if bare on-site phonon frequency is zero, default to 1.0
Ω′ = iszero(Ω[n]) ? 1.0 : Ω[n]
# set the fourier mass matrix element
M̃[n, ω] = Δτ * ((1+reg)*M[n]*Ω′^2 + 4*M[n]/Δτ^2*sin*-1)/Lτ)^2) / ((1+reg)*M[n]*Ω′^2)
M̃[n, ω] = Δτ * ((1+reg^2)*M[n]*Ω′^2 + 4*M[n]/Δτ^2*sin*-1)/Lτ)^2) / ((1+reg^2)*M[n]*Ω′^2)
end
end
end
Expand Down

2 comments on commit ffbe52b

@cohensbw
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/92694

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.3 -m "<description of version>" ffbe52b8011881465329c7d45fc3591f1d161903
git push origin v0.2.3

Please sign in to comment.