Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fermionoperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Return the two-body operator that annihilates a particle at the first and at the
function f_min_f_min(T::Type{<:Number} = ComplexF64)
t = two_site_operator(T)
I = sectortype(t)
t[(I(0), I(0), dual(I(1)), dual(I(1)))] .= 1
t[(I(0), I(0), dual(I(1)), dual(I(1)))] .= -1
return t
end
const f⁻f⁻ = f_min_f_min
Expand Down
2 changes: 1 addition & 1 deletion test/fermionoperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ using StableRNGs
# @test ff⁺ ≈ -swap_2sites(f⁺f)

@test f⁻f⁺()' ≈ -f⁺f⁻()
@test f⁻f⁻()' ≈ f⁺f⁺()
@test f⁻f⁻()' ≈ -f⁺f⁺()
@test (f⁺f⁻() - f⁻f⁺())' ≈ f⁺f⁻() - f⁻f⁺()
@test (f⁺f⁻() + f⁻f⁺())' ≈ -(f⁻f⁺() + f⁺f⁻())

Expand Down
Loading