Skip to content

Commit

Permalink
build based on 5714833
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Oct 22, 2024
1 parent 08a62a7 commit 795beac
Show file tree
Hide file tree
Showing 15 changed files with 270 additions and 194 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.11.1","generation_timestamp":"2024-10-20T19:54:20","documenter_version":"1.7.0"}}
{"documenter":{"julia_version":"1.11.1","generation_timestamp":"2024-10-22T05:02:00","documenter_version":"1.7.0"}}
Binary file added dev/assets/img/condscaling.pdf
Binary file not shown.
Binary file modified dev/assets/img/result.pdf
Binary file not shown.
Binary file modified dev/assets/img/u_basis.pdf
Binary file not shown.
Binary file modified dev/assets/img/uhat_basis.pdf
Binary file not shown.
Binary file modified dev/assets/img/v_basis.pdf
Binary file not shown.
57 changes: 56 additions & 1 deletion dev/assets/result-plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ using InteractiveUtils
# ╔═╡ 5d462555-664b-4de5-b076-5ee2078d6ff7
using SparseIR, CairoMakie

# ╔═╡ 45e50347-0b4d-41a2-8b3e-3ad293674e86
using LinearAlgebra

# ╔═╡ 2d5d27c2-e77e-4bfc-88f4-6e7d85f6fd13
function compute(; β=10, ωmax=8, ε=1e-6)
# Construct the IR basis and sparse sampling for fermionic propagators
Expand Down Expand Up @@ -41,6 +44,15 @@ function compute(; β=10, ωmax=8, ε=1e-6)
basis, siω, Gl, Σl, β
end

# ╔═╡ c386d225-825a-4906-acc6-042b6809aba8
function dos(basis, Gl)
w = range(-8, 8; length=100)
E = transpose(basis.v(w))
display(E)
Gw = E * Gl
-1/pi * imag(Gw)
end

# ╔═╡ bc15f8ab-ded8-4a62-b7de-9f0a2230e7d6
function make_plot(basis, siω, Gl, Σl, β, filename)
box = FermionicFreq.(1:2:79)
Expand Down Expand Up @@ -109,6 +121,12 @@ end
# ╔═╡ 2e8e225d-8e72-4b36-9975-a0c44e271f8a
basis, siω, Gl, Σl, β = compute()

# ╔═╡ d1c9ba8b-ce30-4f4e-a2d8-3ca61f881803
imag(Gl)

# ╔═╡ 2e25484a-de38-4d90-b0df-f676a76d119b
lines(dos(basis, Gl))

# ╔═╡ 61e1df2f-54f2-4f39-8f3a-ee70a471b125
let
ωs = FermionicFreq.(-15:2:15)
Expand Down Expand Up @@ -181,10 +199,41 @@ end
# ╔═╡ c39a2c55-af9b-43ed-b11f-c89bcc3a1d00
make_plot(basis, siω, Gl, Σl, β, "img/result.pdf")

# ╔═╡ 94984eca-ae0c-40d3-b938-b2f6ecc72198
begin
tauconds = []
iwconds = []
betas = exp.(range(log(1), log(100); length=1000))
for β in betas
basis = FiniteTempBasis{Fermionic}(β, 1.0, 1e-6)
stau = TauSampling(basis)
siw = MatsubaraSampling(basis)
push!(tauconds, cond(stau))
push!(iwconds, cond(siw))
end
end

# ╔═╡ 6f0b1e60-2acb-4e6a-9b15-bdb6be3ea76e
begin
fig = Figure()
ax = Axis(fig[1,1]; yscale=log10, xscale=log10,
xlabel=L"Cutoff $\Lambda$", ylabel=L"Sampling condition number$$",
xticks=LogTicks(WilkinsonTicks(3)),
xminorticks=IntervalsBetween(9),
xminorticksvisible=true,
yminorticksvisible=true)
lines!(ax, betas, tauconds, label=L"TauSampling$$")
lines!(ax, betas, iwconds, label=L"MatsubaraSampling$$")
axislegend(ax; position=:lt)
save("img/condscaling.pdf", fig)
fig
end

# ╔═╡ 00000000-0000-0000-0000-000000000001
PLUTO_PROJECT_TOML_CONTENTS = """
[deps]
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
SparseIR = "4fe2279e-80f0-4adb-8463-ee114ff56b7d"
[compat]
Expand All @@ -198,7 +247,7 @@ PLUTO_MANIFEST_TOML_CONTENTS = """
julia_version = "1.11.1"
manifest_format = "2.0"
project_hash = "8388f4e7586e27cdd3147342d380ad4cb027d31d"
project_hash = "4624ca61f28be70faeb7ed9ce9d06783e1b7788b"
[[deps.AbstractFFTs]]
deps = ["LinearAlgebra"]
Expand Down Expand Up @@ -1662,11 +1711,17 @@ version = "3.6.0+0"
# ╔═╡ Cell order:
# ╠═5d462555-664b-4de5-b076-5ee2078d6ff7
# ╠═2d5d27c2-e77e-4bfc-88f4-6e7d85f6fd13
# ╠═d1c9ba8b-ce30-4f4e-a2d8-3ca61f881803
# ╠═c386d225-825a-4906-acc6-042b6809aba8
# ╠═2e25484a-de38-4d90-b0df-f676a76d119b
# ╠═61e1df2f-54f2-4f39-8f3a-ee70a471b125
# ╠═b5bb004e-3ceb-41d9-8a30-3822d18a8c3b
# ╠═9e5840ab-a480-4527-b938-1eac8cbe0330
# ╠═bc15f8ab-ded8-4a62-b7de-9f0a2230e7d6
# ╠═2e8e225d-8e72-4b36-9975-a0c44e271f8a
# ╠═c39a2c55-af9b-43ed-b11f-c89bcc3a1d00
# ╠═45e50347-0b4d-41a2-8b3e-3ad293674e86
# ╠═94984eca-ae0c-40d3-b938-b2f6ecc72198
# ╠═6f0b1e60-2acb-4e6a-9b15-bdb6be3ea76e
# ╟─00000000-0000-0000-0000-000000000001
# ╟─00000000-0000-0000-0000-000000000002
Binary file modified dev/assets/titlepage_sparseirjl.pdf
Binary file not shown.
114 changes: 67 additions & 47 deletions dev/guide/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Home · SparseIR.jl</title><meta name="title" content="Home · SparseIR.jl"/><meta property="og:title" content="Home · SparseIR.jl"/><meta property="twitter:title" content="Home · SparseIR.jl"/><meta name="description" content="Documentation for SparseIR.jl."/><meta property="og:description" content="Documentation for SparseIR.jl."/><meta property="twitter:description" content="Documentation for SparseIR.jl."/><script data-outdated-warner src="assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.050/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="assets/documenter.js"></script><script src="search_index.js"></script><script src="siteinfo.js"></script><script src="../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/catppuccin-mocha.css" data-theme-name="catppuccin-mocha"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/catppuccin-macchiato.css" data-theme-name="catppuccin-macchiato"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/catppuccin-frappe.css" data-theme-name="catppuccin-frappe"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/catppuccin-latte.css" data-theme-name="catppuccin-latte"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="assets/themeswap.js"></script><link href="assets/custom.css" rel="stylesheet" type="text/css"/></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href>SparseIR.jl</a></span></div><button class="docs-search-query input is-rounded is-small is-clickable my-2 mx-auto py-1 px-2" id="documenter-search-query">Search docs (Ctrl + /)</button><ul class="docs-menu"><li class="is-active"><a class="tocitem" href>Home</a></li><li><a class="tocitem" href="guide/">Guide</a></li><li><a class="tocitem" href="public/">Public</a></li><li><a class="tocitem" href="private/">Private</a></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><a class="docs-sidebar-button docs-navbar-link fa-solid fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>Home</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Home</a></li></ul></nav><div class="docs-right"><a class="docs-navbar-link" href="https://github.com/SpM-lab/SparseIR.jl" title="View the repository on GitHub"><span class="docs-icon fa-brands"></span><span class="docs-label is-hidden-touch">GitHub</span></a><a class="docs-navbar-link" href="https://github.com/SpM-lab/SparseIR.jl/blob/main/docs/src/index.md" title="Edit source on GitHub"><span class="docs-icon fa-solid"></span></a><a class="docs-settings-button docs-navbar-link fa-solid fa-gear" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-article-toggle-button fa-solid fa-chevron-up" id="documenter-article-toggle-button" href="javascript:;" title="Collapse all docstrings"></a></div></header><article class="content" id="documenter-page"><h1 id="SparseIR.jl"><a class="docs-heading-anchor" href="#SparseIR.jl">SparseIR.jl</a><a id="SparseIR.jl-1"></a><a class="docs-heading-anchor-permalink" href="#SparseIR.jl" title="Permalink"></a></h1><p>Documentation for <a href="https://github.com/SpM-lab/SparseIR.jl">SparseIR.jl</a>.</p><p>There is a <a href="guide/#guide">guide</a> available which details SparseIR.jl&#39;s inner workings by means of a worked example.</p><p>For listings of all documented names, see <a href="public/#Public-names-index">Public names index</a> and the <a href="private/#Private-names-index">Private names index</a>.</p></article><nav class="docs-footer"><a class="docs-footer-nextpage" href="guide/">Guide »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Sunday 20 October 2024 19:54">Sunday 20 October 2024</span>. Using Julia version 1.11.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Home · SparseIR.jl</title><meta name="title" content="Home · SparseIR.jl"/><meta property="og:title" content="Home · SparseIR.jl"/><meta property="twitter:title" content="Home · SparseIR.jl"/><meta name="description" content="Documentation for SparseIR.jl."/><meta property="og:description" content="Documentation for SparseIR.jl."/><meta property="twitter:description" content="Documentation for SparseIR.jl."/><script data-outdated-warner src="assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.050/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.8/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="assets/documenter.js"></script><script src="search_index.js"></script><script src="siteinfo.js"></script><script src="../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/catppuccin-mocha.css" data-theme-name="catppuccin-mocha"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/catppuccin-macchiato.css" data-theme-name="catppuccin-macchiato"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/catppuccin-frappe.css" data-theme-name="catppuccin-frappe"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/catppuccin-latte.css" data-theme-name="catppuccin-latte"/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="assets/themeswap.js"></script><link href="assets/custom.css" rel="stylesheet" type="text/css"/></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href>SparseIR.jl</a></span></div><button class="docs-search-query input is-rounded is-small is-clickable my-2 mx-auto py-1 px-2" id="documenter-search-query">Search docs (Ctrl + /)</button><ul class="docs-menu"><li class="is-active"><a class="tocitem" href>Home</a></li><li><a class="tocitem" href="guide/">Guide</a></li><li><a class="tocitem" href="public/">Public</a></li><li><a class="tocitem" href="private/">Private</a></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><a class="docs-sidebar-button docs-navbar-link fa-solid fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>Home</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Home</a></li></ul></nav><div class="docs-right"><a class="docs-navbar-link" href="https://github.com/SpM-lab/SparseIR.jl" title="View the repository on GitHub"><span class="docs-icon fa-brands"></span><span class="docs-label is-hidden-touch">GitHub</span></a><a class="docs-navbar-link" href="https://github.com/SpM-lab/SparseIR.jl/blob/main/docs/src/index.md" title="Edit source on GitHub"><span class="docs-icon fa-solid"></span></a><a class="docs-settings-button docs-navbar-link fa-solid fa-gear" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-article-toggle-button fa-solid fa-chevron-up" id="documenter-article-toggle-button" href="javascript:;" title="Collapse all docstrings"></a></div></header><article class="content" id="documenter-page"><h1 id="SparseIR.jl"><a class="docs-heading-anchor" href="#SparseIR.jl">SparseIR.jl</a><a id="SparseIR.jl-1"></a><a class="docs-heading-anchor-permalink" href="#SparseIR.jl" title="Permalink"></a></h1><p>Documentation for <a href="https://github.com/SpM-lab/SparseIR.jl">SparseIR.jl</a>.</p><p>There is a <a href="guide/#guide">guide</a> available which details SparseIR.jl&#39;s inner workings by means of a worked example.</p><p>For listings of all documented names, see <a href="public/#Public-names-index">Public names index</a> and the <a href="private/#Private-names-index">Private names index</a>.</p></article><nav class="docs-footer"><a class="docs-footer-nextpage" href="guide/">Guide »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Tuesday 22 October 2024 05:02">Tuesday 22 October 2024</span>. Using Julia version 1.11.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Binary file modified dev/objects.inv
Binary file not shown.
Loading

0 comments on commit 795beac

Please sign in to comment.