Skip to content

Commit

Permalink
deploy: e4b678a
Browse files Browse the repository at this point in the history
  • Loading branch information
Jue-Xu committed Aug 7, 2024
1 parent 69573b8 commit 1afbed0
Show file tree
Hide file tree
Showing 83 changed files with 9,061 additions and 850 deletions.
38 changes: 24 additions & 14 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,23 +182,33 @@
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Basics</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="state.html">States</a></li>
<li class="toctree-l1"><a class="reference internal" href="operator.html">Operators</a></li>
<li class="toctree-l1"><a class="reference internal" href="channel.html">Channels</a></li>
<li class="toctree-l1 has-children"><a class="reference internal" href="basic.html">Quantum computation</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
<li class="toctree-l2"><a class="reference internal" href="state.html">States</a></li>
<li class="toctree-l2"><a class="reference internal" href="operator.html">Operators</a></li>
<li class="toctree-l2"><a class="reference internal" href="channel.html">Channels</a></li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Hamiltonians</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="spin.html">Spin</a></li>
<li class="toctree-l1"><a class="reference internal" href="fermion.html">Fermion</a></li>
<li class="toctree-l1"><a class="reference internal" href="field.html">Gauge Field</a></li>
</details></li>
<li class="toctree-l1"><a class="reference internal" href="simulation.html">Quantum simulation</a></li>
<li class="toctree-l1 has-children"><a class="reference internal" href="hamiltonian.html">Gallery of toy models</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
<li class="toctree-l2"><a class="reference internal" href="spin.html">Spin</a></li>
<li class="toctree-l2"><a class="reference internal" href="fermion.html">Fermion</a></li>
<li class="toctree-l2"><a class="reference internal" href="field.html">Gauge Field</a></li>
</ul>
</details></li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Product Formula</span></p>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Algorithms</span></p>
<ul class="nav bd-sidenav">
<li class="toctree-l1"><a class="reference internal" href="ordering.html">Ordering</a></li>
<li class="toctree-l1"><a class="reference internal" href="grouping.html">Grouping</a></li>
<li class="toctree-l1"><a class="reference internal" href="interference.html">Error interference</a></li>
<li class="toctree-l1"><a class="reference internal" href="localization.html">Error localization</a></li>
<li class="toctree-l1"><a class="reference internal" href="average.html">Average error</a></li>
<li class="toctree-l1 has-children"><a class="reference internal" href="trotter.html">Product formula</a><details><summary><span class="toctree-toggle" role="presentation"><i class="fa-solid fa-chevron-down"></i></span></summary><ul>
<li class="toctree-l2"><a class="reference internal" href="ordering.html">Ordering</a></li>
<li class="toctree-l2"><a class="reference internal" href="grouping.html">Grouping</a></li>
<li class="toctree-l2"><a class="reference internal" href="interference.html">Error interference</a></li>
<li class="toctree-l2"><a class="reference internal" href="localization.html">Error localization</a></li>
<li class="toctree-l2"><a class="reference internal" href="average.html">Average error</a></li>
</ul>
</details></li>
<li class="toctree-l1"><a class="reference internal" href="lcu.html">LCU</a></li>

<li class="toctree-l1"><a class="reference internal" href="qsp.html">QSP and QSVT</a></li>
</ul>
<p aria-level="2" class="caption" role="heading"><span class="caption-text">Classical simulation</span></p>
<ul class="nav bd-sidenav">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion _sources/basic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Basic"
"# Quantum computation"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Quantum Information"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Quantum Computation"
]
}
],
Expand Down
32 changes: 32 additions & 0 deletions _sources/hamiltonian.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Gallery of toy models"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "base",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
2 changes: 2 additions & 0 deletions _sources/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<!-- Check out the content pages bundled with this sample book to see more. -->
<!-- Table of Content -->

This is a pedagogic tutorial on quantum simulation with code.

```{tableofcontents}
```

Expand Down
87 changes: 87 additions & 0 deletions _sources/lcu.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "93e1e53b",
"metadata": {},
"source": [
"## LCU"
]
},
{
"cell_type": "markdown",
"id": "8b24f5d3",
"metadata": {},
"source": [
"## Post Trotter algorithms\n",
"\n",
"Tutorials:\n",
"- Robin Kothari: https://www.youtube.com/watch?v=mWg56DxtDy0\n",
"- Nathan Wiebe: https://www.youtube.com/watch?v=UpZLyXsdJnA"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "2763848a",
"metadata": {},
"outputs": [],
"source": [
"from qiskit.quantum_info import SparsePauliOp, Statevector\n",
"\n",
"import quantum_simulation_recipe as qsr\n",
"from quantum_simulation_recipe import spin_ham"
]
},
{
"cell_type": "markdown",
"id": "ed26007b",
"metadata": {},
"source": [
"### Block encoding"
]
},
{
"cell_type": "markdown",
"id": "e4dfa4db",
"metadata": {},
"source": [
"### Amplitude amplification"
]
},
{
"cell_type": "markdown",
"id": "9f801c1c",
"metadata": {},
"source": [
"### Oblivious amplitude amplification"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.8 ('base')",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
},
"vscode": {
"interpreter": {
"hash": "4e8ef2f9fcac0817bca9a7ca376f64f20b4df5ea3bf7af756a50bda7d3557ea6"
}
}
},
"nbformat": 4,
"nbformat_minor": 5
}
53 changes: 0 additions & 53 deletions _sources/ordering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,59 +8,6 @@
"# Ordering"
]
},
{
"cell_type": "markdown",
"id": "b3f31dc4",
"metadata": {},
"source": [
"Trotter Tutorials:\n",
"- https://qiskit-community.github.io/qiskit-algorithms/tutorials/13_trotterQRTE.html#\n",
"- https://nbviewer.org/github/DavitKhach/quantum-algorithms-tutorials/blob/master/Hamiltonian_simulation.ipynb"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "84ac0b32",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"SparsePauliOp(['IIXX', 'IXXI', 'XXII', 'IIYY', 'IYYI', 'YYII', 'IIZZ', 'IZZI', 'ZZII', 'IIIX', 'IIXI', 'IXII', 'XIII'],\n",
" coeffs=[1. +0.j, 1. +0.j, 1. +0.j, 1. +0.j, 1. +0.j, 1. +0.j, 1. +0.j, 1. +0.j,\n",
" 1. +0.j, 0.2+0.j, 0.2+0.j, 0.2+0.j, 0.2+0.j])"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import quantum_simulation_recipe as qsr\n",
"from quantum_simulation_recipe import spin_ham\n",
"\n",
"H = spin_ham.Nearest_Neighbour_1d(4)\n",
"H.ham"
]
},
{
"cell_type": "markdown",
"id": "b45a921c",
"metadata": {},
"source": [
"## Lie-Trotter-Suzuki product formula"
]
},
{
"cell_type": "markdown",
"id": "d2c55840",
"metadata": {},
"source": [
"## High-order product formula"
]
},
{
"cell_type": "markdown",
"id": "ad7989ef",
Expand Down
1,815 changes: 1,815 additions & 0 deletions _sources/ordering_chem.ipynb

Large diffs are not rendered by default.

87 changes: 87 additions & 0 deletions _sources/qsp.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "8b24f5d3",
"metadata": {},
"source": [
"# QSP and QSVT\n",
"\n",
"Tutorials:\n",
"- Robin Kothari: https://www.youtube.com/watch?v=mWg56DxtDy0\n",
"- Nathan Wiebe: https://www.youtube.com/watch?v=UpZLyXsdJnA"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "2763848a",
"metadata": {},
"outputs": [],
"source": [
"from qiskit.quantum_info import SparsePauliOp, Statevector\n",
"\n",
"import quantum_simulation_recipe as qsr\n",
"from quantum_simulation_recipe import spin_ham"
]
},
{
"cell_type": "markdown",
"id": "ed26007b",
"metadata": {},
"source": [
"### Block encoding"
]
},
{
"cell_type": "markdown",
"id": "e4dfa4db",
"metadata": {},
"source": [
"### Amplitude amplification"
]
},
{
"cell_type": "markdown",
"id": "e704fe72",
"metadata": {},
"source": [
"## QSP"
]
},
{
"cell_type": "markdown",
"id": "9f801c1c",
"metadata": {},
"source": [
"### Oblivious amplitude amplification"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.8 ('base')",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
},
"vscode": {
"interpreter": {
"hash": "4e8ef2f9fcac0817bca9a7ca376f64f20b4df5ea3bf7af756a50bda7d3557ea6"
}
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading

0 comments on commit 1afbed0

Please sign in to comment.