Skip to content

Commit

Permalink
v1.6.1 fix bug in current measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
cohensbw committed Dec 25, 2024
1 parent 6ebec68 commit 4c73a8e
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 = "JDQMCMeasurements"
uuid = "387dbc25-93e3-4e71-ad28-7b91e77c6da4"
authors = ["Benjamin Cohen-Stead <[email protected]>"]
version = "1.6.0"
version = "1.6.1"

[deps]
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
Expand Down
8 changes: 4 additions & 4 deletions src/correlation_measurements/current_correlation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,16 @@ function current_correlation!(
if σ′ == σ″

# CC(τ,r) = CC(τ,r) + sum_i tσ′(a,i+r|b,i)⋅tσ″(c,i+r″|d,i)⋅Gσ′(c,i+r″,0|b,i+r,τ)⋅Gσ″(a,i+r+r′,τ|d,i,0)
contract_G0r_Gr0!(CC, Gσ′_0τ, Gσ′_τ0, c, b, a, d, r″, z, r′, z, +1, unit_cell, lattice, sgn)
contract_G0r_Gr0!(CC, Gσ′_0τ, Gσ′_τ0, t′, t″, c, b, a, d, r″, z, r′, z, +1, unit_cell, lattice, sgn)

# CC(τ,r) = CC(τ,r) - sum_i tσ′(a,i+r|b,i)⋅tσ″(c,i+r″|d,i)⋅Gσ′(d,i,0|b,i+r,τ)⋅Gσ″(a,i+r+r′,τ|c,i+r″,0)
contract_G0r_Gr0!(CC, Gσ′_0τ, Gσ′_τ0, d, b, a, c, z, z, r′, r″, -1, unit_cell, lattice, sgn)
contract_G0r_Gr0!(CC, Gσ′_0τ, Gσ′_τ0, t′, t″, d, b, a, c, z, z, r′, r″, -1, unit_cell, lattice, sgn)

# CC(τ,r) = CC(τ,r) - sum_i tσ′(a,i+r|b,i)⋅tσ″(c,i+r″|d,i)⋅Gσ′(c,i+r″,0|a,i+r+r′,τ)⋅Gσ″(b,i+r,τ|d,i,0)
contract_G0r_Gr0!(CC, Gσ′_0τ, Gσ′_τ0, c, a, b, d, r″, r′, z, z, -1, unit_cell, lattice, sgn)
contract_G0r_Gr0!(CC, Gσ′_0τ, Gσ′_τ0, t′, t″, c, a, b, d, r″, r′, z, z, -1, unit_cell, lattice, sgn)

# CC(τ,r) = CC(τ,r) + sum_i tσ′(a,i+r|b,i)⋅tσ″(c,i+r″|d,i)⋅Gσ′(d,i,0|a,i+r+r′,τ)⋅Gσ″(b,i+r,τ|c,i+r″,0)
contract_G0r_Gr0!(CC, Gσ′_0τ, Gσ′_τ0, d, a, b, c, z, r′, z, r″, +1, unit_cell, lattice, sgn)
contract_G0r_Gr0!(CC, Gσ′_0τ, Gσ′_τ0, t′, t″, d, a, b, c, z, r′, z, r″, +1, unit_cell, lattice, sgn)
end

return nothing
Expand Down

2 comments on commit 4c73a8e

@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/121969

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

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 v1.6.1 -m "<description of version>" 4c73a8ee6ba5dad8e1f19d53373588d0a7b7822e
git push origin v1.6.1

Please sign in to comment.