Skip to content

Commit 1e64de3

Browse files
Docs preview for PR #3592.
1 parent 150a9ac commit 1e64de3

File tree

244 files changed

+13774
-45
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+13774
-45
lines changed
64.2 KB
Loading

pr-3592/_sources/applications/python/entanglement_acc_hamiltonian_simulation.ipynb.txt

Lines changed: 619 additions & 0 deletions
Large diffs are not rendered by default.

pr-3592/_sources/using/applications.rst.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ This page contains a number of different applications implemented using CUDA-Q.
4646
/applications/python/mps_encoding
4747
/applications/python/qm_mm_pe
4848
/applications/python/skqd
49+
/applications/python/entanglement_acc_hamiltonian_simulation
4950

5051
.. |:spellcheck-enable:| replace:: \
5152

@@ -331,6 +332,14 @@ This page contains a number of different applications implemented using CUDA-Q.
331332
<img src="../_static/app_title_images/qmmm-pe.png" alt="QM/MM partitioning in the PE model." class="notebook-image">
332333
</div>
333334

335+
<div class="notebook-entry" data-tags="gpu, dynamics, noiseless">
336+
<a href="../applications/python/entanglement_acc_hamiltonian_simulation" class="notebook-title">Entanglement Accelerates Quantum Simulation</a>
337+
<div class="notebook-content">
338+
Learn how entanglement growth can *reduce* the Trotter error of the first-order product formula (PF1), recovering the result from the [paper](https://www.nature.com/articles/s41567-025-02945-2) using NVIDIA CUDA-Q.
339+
</div>
340+
<img src="../_static/app_title_images/entanglement_acc_hamiltonian_simulation_preview.png" alt="PF1 error decreases as entanglement spreads" class="notebook-image">
341+
</div>
342+
334343
<script>
335344
document.addEventListener("DOMContentLoaded", function() {
336345
document.querySelectorAll('.notebook-entry').forEach(entry => {
64.8 KB
Loading

pr-3592/_tags/tagsindex.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,29 @@
548548
</li>
549549
</ul>
550550
</li>
551+
<li class="toctree-l2"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html">Entanglement Accelerates Quantum Simulation</a><ul>
552+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.-Model-Definition">2. Model Definition</a><ul>
553+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.1-Initial-product-state">2.1 Initial product state</a></li>
554+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.2-QIMF-Hamiltonian">2.2 QIMF Hamiltonian</a></li>
555+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.3-First-Order-Trotter-Formula-(PF1)">2.3 First-Order Trotter Formula (PF1)</a></li>
556+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.4-PF1-step-for-the-QIMF-partition">2.4 PF1 step for the QIMF partition</a></li>
557+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.5-Hamiltonian-helpers">2.5 Hamiltonian helpers</a></li>
558+
</ul>
559+
</li>
560+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#3.-Entanglement-metrics">3. Entanglement metrics</a></li>
561+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#4.-Simulation-workflow">4. Simulation workflow</a><ul>
562+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#4.1-Single-step-Trotter-error">4.1 Single-step Trotter error</a></li>
563+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#4.2-Dual-trajectory-update">4.2 Dual trajectory update</a></li>
564+
</ul>
565+
</li>
566+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#5.-Reproducing-the-paper’s-Figure-1a">5. Reproducing the paper’s Figure 1a</a><ul>
567+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#5.1-Visualising-the-joint-behaviour">5.1 Visualising the joint behaviour</a></li>
568+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#5.2-Interpreting-the-result">5.2 Interpreting the result</a></li>
569+
</ul>
570+
</li>
571+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#6.-References-and-further-reading">6. References and further reading</a></li>
572+
</ul>
573+
</li>
551574
</ul>
552575
</li>
553576
<li class="toctree-l1"><a class="reference internal" href="../using/backends/backends.html"> Backends</a><ul>

pr-3592/_tags/tagsindex.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,51 @@ pr-3592
895895
- [What to
896896
Expect:](../applications/python/skqd.html#What-to-Expect:){.reference
897897
.internal}
898+
- [Entanglement Accelerates Quantum
899+
Simulation](../applications/python/entanglement_acc_hamiltonian_simulation.html){.reference
900+
.internal}
901+
- [2. Model
902+
Definition](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.-Model-Definition){.reference
903+
.internal}
904+
- [2.1 Initial product
905+
state](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.1-Initial-product-state){.reference
906+
.internal}
907+
- [2.2 QIMF
908+
Hamiltonian](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.2-QIMF-Hamiltonian){.reference
909+
.internal}
910+
- [2.3 First-Order Trotter Formula
911+
(PF1)](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.3-First-Order-Trotter-Formula-(PF1)){.reference
912+
.internal}
913+
- [2.4 PF1 step for the QIMF
914+
partition](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.4-PF1-step-for-the-QIMF-partition){.reference
915+
.internal}
916+
- [2.5 Hamiltonian
917+
helpers](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.5-Hamiltonian-helpers){.reference
918+
.internal}
919+
- [3. Entanglement
920+
metrics](../applications/python/entanglement_acc_hamiltonian_simulation.html#3.-Entanglement-metrics){.reference
921+
.internal}
922+
- [4. Simulation
923+
workflow](../applications/python/entanglement_acc_hamiltonian_simulation.html#4.-Simulation-workflow){.reference
924+
.internal}
925+
- [4.1 Single-step Trotter
926+
error](../applications/python/entanglement_acc_hamiltonian_simulation.html#4.1-Single-step-Trotter-error){.reference
927+
.internal}
928+
- [4.2 Dual trajectory
929+
update](../applications/python/entanglement_acc_hamiltonian_simulation.html#4.2-Dual-trajectory-update){.reference
930+
.internal}
931+
- [5. Reproducing the paper's Figure
932+
1a](../applications/python/entanglement_acc_hamiltonian_simulation.html#5.-Reproducing-the-paper’s-Figure-1a){.reference
933+
.internal}
934+
- [5.1 Visualising the joint
935+
behaviour](../applications/python/entanglement_acc_hamiltonian_simulation.html#5.1-Visualising-the-joint-behaviour){.reference
936+
.internal}
937+
- [5.2 Interpreting the
938+
result](../applications/python/entanglement_acc_hamiltonian_simulation.html#5.2-Interpreting-the-result){.reference
939+
.internal}
940+
- [6. References and further
941+
reading](../applications/python/entanglement_acc_hamiltonian_simulation.html#6.-References-and-further-reading){.reference
942+
.internal}
898943
- [Backends](../using/backends/backends.html){.reference .internal}
899944
- [Circuit
900945
Simulation](../using/backends/simulators.html){.reference

pr-3592/api/api.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,29 @@
550550
</li>
551551
</ul>
552552
</li>
553+
<li class="toctree-l2"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html">Entanglement Accelerates Quantum Simulation</a><ul>
554+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.-Model-Definition">2. Model Definition</a><ul>
555+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.1-Initial-product-state">2.1 Initial product state</a></li>
556+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.2-QIMF-Hamiltonian">2.2 QIMF Hamiltonian</a></li>
557+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.3-First-Order-Trotter-Formula-(PF1)">2.3 First-Order Trotter Formula (PF1)</a></li>
558+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.4-PF1-step-for-the-QIMF-partition">2.4 PF1 step for the QIMF partition</a></li>
559+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.5-Hamiltonian-helpers">2.5 Hamiltonian helpers</a></li>
560+
</ul>
561+
</li>
562+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#3.-Entanglement-metrics">3. Entanglement metrics</a></li>
563+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#4.-Simulation-workflow">4. Simulation workflow</a><ul>
564+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#4.1-Single-step-Trotter-error">4.1 Single-step Trotter error</a></li>
565+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#4.2-Dual-trajectory-update">4.2 Dual trajectory update</a></li>
566+
</ul>
567+
</li>
568+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#5.-Reproducing-the-paper’s-Figure-1a">5. Reproducing the paper’s Figure 1a</a><ul>
569+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#5.1-Visualising-the-joint-behaviour">5.1 Visualising the joint behaviour</a></li>
570+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#5.2-Interpreting-the-result">5.2 Interpreting the result</a></li>
571+
</ul>
572+
</li>
573+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#6.-References-and-further-reading">6. References and further reading</a></li>
574+
</ul>
575+
</li>
553576
</ul>
554577
</li>
555578
<li class="toctree-l1"><a class="reference internal" href="../using/backends/backends.html"> Backends</a><ul>

pr-3592/api/api.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,51 @@ pr-3592
895895
- [What to
896896
Expect:](../applications/python/skqd.html#What-to-Expect:){.reference
897897
.internal}
898+
- [Entanglement Accelerates Quantum
899+
Simulation](../applications/python/entanglement_acc_hamiltonian_simulation.html){.reference
900+
.internal}
901+
- [2. Model
902+
Definition](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.-Model-Definition){.reference
903+
.internal}
904+
- [2.1 Initial product
905+
state](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.1-Initial-product-state){.reference
906+
.internal}
907+
- [2.2 QIMF
908+
Hamiltonian](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.2-QIMF-Hamiltonian){.reference
909+
.internal}
910+
- [2.3 First-Order Trotter Formula
911+
(PF1)](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.3-First-Order-Trotter-Formula-(PF1)){.reference
912+
.internal}
913+
- [2.4 PF1 step for the QIMF
914+
partition](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.4-PF1-step-for-the-QIMF-partition){.reference
915+
.internal}
916+
- [2.5 Hamiltonian
917+
helpers](../applications/python/entanglement_acc_hamiltonian_simulation.html#2.5-Hamiltonian-helpers){.reference
918+
.internal}
919+
- [3. Entanglement
920+
metrics](../applications/python/entanglement_acc_hamiltonian_simulation.html#3.-Entanglement-metrics){.reference
921+
.internal}
922+
- [4. Simulation
923+
workflow](../applications/python/entanglement_acc_hamiltonian_simulation.html#4.-Simulation-workflow){.reference
924+
.internal}
925+
- [4.1 Single-step Trotter
926+
error](../applications/python/entanglement_acc_hamiltonian_simulation.html#4.1-Single-step-Trotter-error){.reference
927+
.internal}
928+
- [4.2 Dual trajectory
929+
update](../applications/python/entanglement_acc_hamiltonian_simulation.html#4.2-Dual-trajectory-update){.reference
930+
.internal}
931+
- [5. Reproducing the paper's Figure
932+
1a](../applications/python/entanglement_acc_hamiltonian_simulation.html#5.-Reproducing-the-paper’s-Figure-1a){.reference
933+
.internal}
934+
- [5.1 Visualising the joint
935+
behaviour](../applications/python/entanglement_acc_hamiltonian_simulation.html#5.1-Visualising-the-joint-behaviour){.reference
936+
.internal}
937+
- [5.2 Interpreting the
938+
result](../applications/python/entanglement_acc_hamiltonian_simulation.html#5.2-Interpreting-the-result){.reference
939+
.internal}
940+
- [6. References and further
941+
reading](../applications/python/entanglement_acc_hamiltonian_simulation.html#6.-References-and-further-reading){.reference
942+
.internal}
898943
- [Backends](../using/backends/backends.html){.reference .internal}
899944
- [Circuit
900945
Simulation](../using/backends/simulators.html){.reference

pr-3592/api/default_ops.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,29 @@
552552
</li>
553553
</ul>
554554
</li>
555+
<li class="toctree-l2"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html">Entanglement Accelerates Quantum Simulation</a><ul>
556+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.-Model-Definition">2. Model Definition</a><ul>
557+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.1-Initial-product-state">2.1 Initial product state</a></li>
558+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.2-QIMF-Hamiltonian">2.2 QIMF Hamiltonian</a></li>
559+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.3-First-Order-Trotter-Formula-(PF1)">2.3 First-Order Trotter Formula (PF1)</a></li>
560+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.4-PF1-step-for-the-QIMF-partition">2.4 PF1 step for the QIMF partition</a></li>
561+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#2.5-Hamiltonian-helpers">2.5 Hamiltonian helpers</a></li>
562+
</ul>
563+
</li>
564+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#3.-Entanglement-metrics">3. Entanglement metrics</a></li>
565+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#4.-Simulation-workflow">4. Simulation workflow</a><ul>
566+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#4.1-Single-step-Trotter-error">4.1 Single-step Trotter error</a></li>
567+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#4.2-Dual-trajectory-update">4.2 Dual trajectory update</a></li>
568+
</ul>
569+
</li>
570+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#5.-Reproducing-the-paper’s-Figure-1a">5. Reproducing the paper’s Figure 1a</a><ul>
571+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#5.1-Visualising-the-joint-behaviour">5.1 Visualising the joint behaviour</a></li>
572+
<li class="toctree-l4"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#5.2-Interpreting-the-result">5.2 Interpreting the result</a></li>
573+
</ul>
574+
</li>
575+
<li class="toctree-l3"><a class="reference internal" href="../applications/python/entanglement_acc_hamiltonian_simulation.html#6.-References-and-further-reading">6. References and further reading</a></li>
576+
</ul>
577+
</li>
555578
</ul>
556579
</li>
557580
<li class="toctree-l1"><a class="reference internal" href="../using/backends/backends.html"> Backends</a><ul>

0 commit comments

Comments
 (0)