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
4 changes: 3 additions & 1 deletion .github/workflows/FormatCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ on:
jobs:
format-check:
name: "Format Check"
uses: "QuantumKitHub/.github/.github/workflows/formatcheck.yml@main"
uses: "QuantumKitHub/.github/.github/workflows/formatcheck.yml@main"
with:
juliaformatter-version: "2"
17 changes: 9 additions & 8 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ mathengine = MathJax3(
)

# examples pages
examples_optimization =
joinpath.(["heisenberg", "bose_hubbard", "xxz", "fermi_hubbard"], Ref("index.md"))
examples_time_evolution =
joinpath.(["heisenberg_su", "hubbard_su", "j1j2_su"], Ref("index.md"))
examples_partition_functions =
joinpath.(
["2d_ising_partition_function", "3d_ising_partition_function"], Ref("index.md")
)
examples_optimization = joinpath.(
["heisenberg", "bose_hubbard", "xxz", "fermi_hubbard"], Ref("index.md")
)
examples_time_evolution = joinpath.(
["heisenberg_su", "hubbard_su", "j1j2_su"], Ref("index.md")
)
examples_partition_functions = joinpath.(
["2d_ising_partition_function", "3d_ising_partition_function"], Ref("index.md")
)
examples_boundary_mps = joinpath.(["boundary_mps"], Ref("index.md"))

makedocs(;
Expand Down
3 changes: 2 additions & 1 deletion src/algorithms/toolbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,9 @@ passed through to `MPSKit.transfer_spectrum` (e.g. allowing to target the correl
in a specific symmetry sector).

"""
MPSKit.correlation_length(state, env::CTMRGEnv; num_vals=2, kwargs...) =
function MPSKit.correlation_length(state, env::CTMRGEnv; num_vals=2, kwargs...)
_correlation_length(env; num_vals, kwargs...)
end

function _correlation_length(
env::CTMRGEnv; num_vals=2, sector=one(sectortype(env)), kwargs...
Expand Down
3 changes: 2 additions & 1 deletion src/utility/hook_pullback.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@
!!! warning
No tangent is expected for the `alg_rrule` argument
"""
_rrule(::Nothing, config::RuleConfig, f, args...; kwargs...) =
function _rrule(::Nothing, config::RuleConfig, f, args...; kwargs...)

Check warning on line 47 in src/utility/hook_pullback.jl

View check run for this annotation

Codecov / codecov/patch

src/utility/hook_pullback.jl#L47

Added line #L47 was not covered by tests
rrule_via_ad(config, f, args...; kwargs...)
end