Skip to content

Commit

Permalink
build based on 5a9849e
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Oct 17, 2024
1 parent fcb3aaa commit e9712ed
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 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.10.5","generation_timestamp":"2024-10-17T20:26:14","documenter_version":"1.7.0"}}
{"documenter":{"julia_version":"1.11.1","generation_timestamp":"2024-10-17T20:39:07","documenter_version":"1.7.0"}}
2 changes: 1 addition & 1 deletion dev/contribution_guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

solve!(prob, max_iter=100)
@test unitary_fidelity(prob) > 0.99
end</code></pre><p>Individual tests will populate in the Testing panel in VSCode. All tests are integrated into the base test system for CI, which occurs at each PR submission.</p><p>We organize our tests in two ways:</p><ol><li>Modules in single files (e.g. <code>quantum_utils.jl</code>, <code>direct_sums.jl</code>) should have a single test file in the <code>test/</code> directory.</li><li>Module directories containing templates (e.g. <code>quantum_system_templates/</code>, <code>problem_templates/</code>) should include tests in the same file that the template is defined, so <code>problem_templates/unitary_smooth_pulse_problem.jl</code> includes the test items for <code>UnitarySmoothPulseProblem</code>.</li></ol><h3 id="Reporting-Issues"><a class="docs-heading-anchor" href="#Reporting-Issues">Reporting Issues</a><a id="Reporting-Issues-1"></a><a class="docs-heading-anchor-permalink" href="#Reporting-Issues" title="Permalink"></a></h3><p>Issue templates are available on GitHub. We are happy to take feature requests!</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../generated/quickstart/">« Quickstart Guide</a><a class="docs-footer-nextpage" href="../generated/man/problem_templates/">Problem Templates »</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="Thursday 17 October 2024 20:26">Thursday 17 October 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
end</code></pre><p>Individual tests will populate in the Testing panel in VSCode. All tests are integrated into the base test system for CI, which occurs at each PR submission.</p><p>We organize our tests in two ways:</p><ol><li>Modules in single files (e.g. <code>quantum_utils.jl</code>, <code>direct_sums.jl</code>) should have a single test file in the <code>test/</code> directory.</li><li>Module directories containing templates (e.g. <code>quantum_system_templates/</code>, <code>problem_templates/</code>) should include tests in the same file that the template is defined, so <code>problem_templates/unitary_smooth_pulse_problem.jl</code> includes the test items for <code>UnitarySmoothPulseProblem</code>.</li></ol><h3 id="Reporting-Issues"><a class="docs-heading-anchor" href="#Reporting-Issues">Reporting Issues</a><a id="Reporting-Issues-1"></a><a class="docs-heading-anchor-permalink" href="#Reporting-Issues" title="Permalink"></a></h3><p>Issue templates are available on GitHub. We are happy to take feature requests!</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../generated/quickstart/">« Quickstart Guide</a><a class="docs-footer-nextpage" href="../generated/man/problem_templates/">Problem Templates »</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="Thursday 17 October 2024 20:39">Thursday 17 October 2024</span>. Using Julia version 1.11.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
6 changes: 3 additions & 3 deletions dev/generated/examples/multilevel_transmon/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
Number of equality constraint Jacobian evaluations = 51
Number of inequality constraint Jacobian evaluations = 0
Number of Lagrangian Hessian evaluations = 0
Total seconds in IPOPT = 7.728
Total seconds in IPOPT = 8.310

EXIT: Maximum Number of Iterations Exceeded.</code></pre><p>Let&#39;s look at the fidelity in the subspace</p><pre><code class="language-julia hljs">println(&quot;Fidelity: &quot;, unitary_fidelity(prob; subspace=op.subspace_indices))</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">Fidelity: 0.9969628457842681</code></pre><p>and plot the result using the <code>plot_unitary_populations</code> function.</p><pre><code class="language-julia hljs">plot_unitary_populations(prob; fig_size=(900, 700))</code></pre><img src="44dc8a73.png" alt="Example block output"/><h2 id="Leakage-suppresion"><a class="docs-heading-anchor" href="#Leakage-suppresion">Leakage suppresion</a><a id="Leakage-suppresion-1"></a><a class="docs-heading-anchor-permalink" href="#Leakage-suppresion" title="Permalink"></a></h2><p>As can be seen from the above plot, there is a substantial amount of leakage into the higher levels during the evolution. To mitigate this, we have implemented the ability to add a cost to populating the leakage levels, in particular this is an <span>$L_1$</span> norm cost, which is implemented via slack variables and should ideally drive those leakage populations down to zero. To implement this, pass <code>leakage_suppresion=true</code> and <code>R_leakage={value}</code> to the <code>UnitarySmoothPulseProblem</code> template.</p><pre><code class="language-julia hljs"># create the a leakage suppression problem, initializing with the previous solution

Expand Down Expand Up @@ -288,6 +288,6 @@
Number of equality constraint Jacobian evaluations = 51
Number of inequality constraint Jacobian evaluations = 0
Number of Lagrangian Hessian evaluations = 0
Total seconds in IPOPT = 2.467
Total seconds in IPOPT = 2.559

EXIT: Maximum Number of Iterations Exceeded.</code></pre><p>Let&#39;s look at the fidelity in the subspace</p><pre><code class="language-julia hljs">println(&quot;Fidelity: &quot;, unitary_fidelity(prob_leakage; subspace=op.subspace_indices))</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">Fidelity: 0.9965280827857547</code></pre><p>and plot the result using the <code>plot_unitary_populations</code> function.</p><pre><code class="language-julia hljs">plot_unitary_populations(prob_leakage; fig_size=(900, 700))</code></pre><img src="ca648b7e.png" alt="Example block output"/><p>Here we can see that the leakage populations have been driven substantially down.</p><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../two_qubit_gates/">« Two Qubit Gates</a><a class="docs-footer-nextpage" href="../../../lib/">Library »</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="Thursday 17 October 2024 20:26">Thursday 17 October 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
EXIT: Maximum Number of Iterations Exceeded.</code></pre><p>Let&#39;s look at the fidelity in the subspace</p><pre><code class="language-julia hljs">println(&quot;Fidelity: &quot;, unitary_fidelity(prob_leakage; subspace=op.subspace_indices))</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">Fidelity: 0.9965280827857547</code></pre><p>and plot the result using the <code>plot_unitary_populations</code> function.</p><pre><code class="language-julia hljs">plot_unitary_populations(prob_leakage; fig_size=(900, 700))</code></pre><img src="ca648b7e.png" alt="Example block output"/><p>Here we can see that the leakage populations have been driven substantially down.</p><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../two_qubit_gates/">« Two Qubit Gates</a><a class="docs-footer-nextpage" href="../../../lib/">Library »</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="Thursday 17 October 2024 20:39">Thursday 17 October 2024</span>. Using Julia version 1.11.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/generated/examples/two_qubit_gates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@

solve!(min_time_prob; max_iter=300)

unitary_fidelity(min_time_prob)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">0.9990000104741177</code></pre><p>And let&#39;s plot this solution</p><pre><code class="language-julia hljs">plot_unitary_populations(min_time_prob)</code></pre><img src="abe85283.png" alt="Example block output"/><p>It looks like our pulse derivative bounds are holding back the solution, but regardless, the duration has decreased:</p><pre><code class="language-julia hljs">get_duration(prob.trajectory) - get_duration(min_time_prob.trajectory)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">45.640997330434686</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../man/embedded_operators/">« Embedded Operators</a><a class="docs-footer-nextpage" href="../multilevel_transmon/">Multilevel Transmon »</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="Thursday 17 October 2024 20:26">Thursday 17 October 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
unitary_fidelity(min_time_prob)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">0.9990000104741177</code></pre><p>And let&#39;s plot this solution</p><pre><code class="language-julia hljs">plot_unitary_populations(min_time_prob)</code></pre><img src="abe85283.png" alt="Example block output"/><p>It looks like our pulse derivative bounds are holding back the solution, but regardless, the duration has decreased:</p><pre><code class="language-julia hljs">get_duration(prob.trajectory) - get_duration(min_time_prob.trajectory)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">45.640997330434686</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../man/embedded_operators/">« Embedded Operators</a><a class="docs-footer-nextpage" href="../multilevel_transmon/">Multilevel Transmon »</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="Thursday 17 October 2024 20:39">Thursday 17 October 2024</span>. Using Julia version 1.11.1.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit e9712ed

Please sign in to comment.