Skip to content

Commit

Permalink
build based on 6397fd5
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Oct 6, 2023
1 parent 315fc74 commit cdf2c49
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 15,433 deletions.
6 changes: 3 additions & 3 deletions dev/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
\vdots & & \ddots & & \vdots \\
0 & 0 & \dots & Ĥ(t) & Ĥₙ \\
0 & 0 & \dots & 0 & Ĥ(t)
\end{pmatrix}\]</p><p>Note that the <span>$∂G/∂ϵₗ(t)$</span> (<span>$Ĥₗ$</span> in the above example) may be time-dependent, to account for the possibility of non-linear control terms.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaQuantumControl/QuantumGradientGenerators.jl/blob/0cd2e0e75fabf1dc3c7ea46cea2dea3aa6b14255/src/grad_generator.jl#L6-L32">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="QuantumGradientGenerators.GradVector" href="#QuantumGradientGenerators.GradVector"><code>QuantumGradientGenerators.GradVector</code></a><span class="docstring-category">Type</span></header><section><div><p>Extended state-vector for the dynamic gradient.</p><pre><code class="language-julia hljs">Ψ̃ = GradVector(Ψ, num_controls)</code></pre><p>for an initial state <code>Ψ</code> and <code>num_controls</code> control fields.</p><p>The <code>GradVector</code> conceptually corresponds to a direct-sum (block) column-vector <span>$Ψ̃ = (|Ψ̃₁⟩, |Ψ̃₂⟩, … |Ψ̃ₙ⟩, |Ψ⟩)^T$</span>, where <span>$n$</span> is <code>num_controls</code>. With a matching <span>$G̃$</span> as in the documentation of <a href="#QuantumGradientGenerators.GradGenerator"><code>GradGenerator</code></a>, we have</p><p class="math-container">\[G̃ Ψ̃ = \begin{pmatrix}
\end{pmatrix}\]</p><p>Note that the <span>$∂G/∂ϵₗ(t)$</span> (<span>$Ĥₗ$</span> in the above example) may be time-dependent, to account for the possibility of non-linear control terms.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaQuantumControl/QuantumGradientGenerators.jl/blob/6397fd547b7e048e81b26485f43aed4c4ceb695f/src/grad_generator.jl#L6-L32">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="QuantumGradientGenerators.GradVector" href="#QuantumGradientGenerators.GradVector"><code>QuantumGradientGenerators.GradVector</code></a><span class="docstring-category">Type</span></header><section><div><p>Extended state-vector for the dynamic gradient.</p><pre><code class="language-julia hljs">Ψ̃ = GradVector(Ψ, num_controls)</code></pre><p>for an initial state <code>Ψ</code> and <code>num_controls</code> control fields.</p><p>The <code>GradVector</code> conceptually corresponds to a direct-sum (block) column-vector <span>$Ψ̃ = (|Ψ̃₁⟩, |Ψ̃₂⟩, … |Ψ̃ₙ⟩, |Ψ⟩)^T$</span>, where <span>$n$</span> is <code>num_controls</code>. With a matching <span>$G̃$</span> as in the documentation of <a href="#QuantumGradientGenerators.GradGenerator"><code>GradGenerator</code></a>, we have</p><p class="math-container">\[G̃ Ψ̃ = \begin{pmatrix}
Ĥ |Ψ̃₁⟩ + Ĥ₁|Ψ⟩ \\
\vdots \\
Ĥ |Ψ̃ₙ⟩ + Ĥₙ|Ψ⟩ \\
Expand All @@ -16,6 +16,6 @@
\vdots \\
\frac{∂}{∂ϵₙ} e^{-i Ĥ dt} |Ψ⟩ \\
e^{-i Ĥ dt} |Ψ⟩
\end{pmatrix}.\]</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaQuantumControl/QuantumGradientGenerators.jl/blob/0cd2e0e75fabf1dc3c7ea46cea2dea3aa6b14255/src/grad_vector.jl#L4-L38">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="QuantumGradientGenerators.GradgenOperator" href="#QuantumGradientGenerators.GradgenOperator"><code>QuantumGradientGenerators.GradgenOperator</code></a><span class="docstring-category">Type</span></header><section><div><p>Static generator for the dynamic gradient.</p><pre><code class="language-julia hljs">using QuantumPropagators.Controls: evaluate
\end{pmatrix}.\]</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaQuantumControl/QuantumGradientGenerators.jl/blob/6397fd547b7e048e81b26485f43aed4c4ceb695f/src/grad_vector.jl#L4-L38">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="QuantumGradientGenerators.GradgenOperator" href="#QuantumGradientGenerators.GradgenOperator"><code>QuantumGradientGenerators.GradgenOperator</code></a><span class="docstring-category">Type</span></header><section><div><p>Static generator for the dynamic gradient.</p><pre><code class="language-julia hljs">using QuantumPropagators.Controls: evaluate

G::GradgenOperator = evaluate(gradgen::GradGenerator; vals_dict)</code></pre><p>is the result of plugging in specific values for all controls in a <a href="#QuantumGradientGenerators.GradGenerator"><code>GradGenerator</code></a>.</p><p>The resulting object can be multiplied directly with a <a href="#QuantumGradientGenerators.GradVector"><code>GradVector</code></a>, e.g., in the process of evaluating a piecewise-constant time propagation.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaQuantumControl/QuantumGradientGenerators.jl/blob/0cd2e0e75fabf1dc3c7ea46cea2dea3aa6b14255/src/gradgen_operator.jl#L6-L20">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="QuantumGradientGenerators.resetgradvec!-Tuple{GradVector}" href="#QuantumGradientGenerators.resetgradvec!-Tuple{GradVector}"><code>QuantumGradientGenerators.resetgradvec!</code></a><span class="docstring-category">Method</span></header><section><div><p>Reset the given gradient vector for a new gradient evaluation.</p><pre><code class="language-julia hljs">resetgradvec!(Ψ̃::GradVector)</code></pre><p>zeroes out <code>Ψ̃.grad_states</code> but leaves <code>Ψ̃.state</code> unaffected.</p><pre><code class="language-julia hljs">resetgradvec!(Ψ̃::GradVector, Ψ)</code></pre><p>additionally sets <code>Ψ̃.state</code> to <code>Ψ</code>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaQuantumControl/QuantumGradientGenerators.jl/blob/0cd2e0e75fabf1dc3c7ea46cea2dea3aa6b14255/src/grad_vector.jl#L52-L66">source</a></section></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><div class="flexbox-break"></div><p class="footer-message"><a href="https://github.com/JuliaQuantumControl/QuantumGradientGenerators.jl">QuantumGradientGenerators.jl</a> v0.1.1+dev docs powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</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="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.24 on <span class="colophon-date" title="Tuesday 16 May 2023 01:18">Tuesday 16 May 2023</span>. Using Julia version 1.9.0.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
G::GradgenOperator = evaluate(gradgen::GradGenerator; vals_dict)</code></pre><p>is the result of plugging in specific values for all controls in a <a href="#QuantumGradientGenerators.GradGenerator"><code>GradGenerator</code></a>.</p><p>The resulting object can be multiplied directly with a <a href="#QuantumGradientGenerators.GradVector"><code>GradVector</code></a>, e.g., in the process of evaluating a piecewise-constant time propagation.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaQuantumControl/QuantumGradientGenerators.jl/blob/6397fd547b7e048e81b26485f43aed4c4ceb695f/src/gradgen_operator.jl#L6-L20">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="QuantumGradientGenerators.resetgradvec!-Tuple{GradVector}" href="#QuantumGradientGenerators.resetgradvec!-Tuple{GradVector}"><code>QuantumGradientGenerators.resetgradvec!</code></a><span class="docstring-category">Method</span></header><section><div><p>Reset the given gradient vector for a new gradient evaluation.</p><pre><code class="language-julia hljs">resetgradvec!(Ψ̃::GradVector)</code></pre><p>zeroes out <code>Ψ̃.grad_states</code> but leaves <code>Ψ̃.state</code> unaffected.</p><pre><code class="language-julia hljs">resetgradvec!(Ψ̃::GradVector, Ψ)</code></pre><p>additionally sets <code>Ψ̃.state</code> to <code>Ψ</code>.</p></div><a class="docs-sourcelink" target="_blank" href="https://github.com/JuliaQuantumControl/QuantumGradientGenerators.jl/blob/6397fd547b7e048e81b26485f43aed4c4ceb695f/src/grad_vector.jl#L52-L66">source</a></section></article></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../">« Home</a><div class="flexbox-break"></div><p class="footer-message"><a href="https://github.com/JuliaQuantumControl/QuantumGradientGenerators.jl">QuantumGradientGenerators.jl</a> v0.1.2+dev docs powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</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="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.25 on <span class="colophon-date" title="Friday 6 October 2023 04:08">Friday 6 October 2023</span>. Using Julia version 1.9.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit cdf2c49

Please sign in to comment.