Skip to content

Commit

Permalink
Demo on " Constant-depth preparation of matrix product states with dy…
Browse files Browse the repository at this point in the history
…namic circuits" (#1185)

**Title:**
Constant-depth preparation of matrix product states with dynamic
circuits

**Summary:**
Matrix product states (MPS) form an important class of quantum many-body
states. Preparing them is an important subroutine for any algorithm that
want to use MPS as an initial state, for example. A recent paper, on
which this demo is based, and which it is following closely, generalized
a method that reduces the depth of such a preparation circuit to
constant scaling, by using auxiliary qubits and dynamic quantum circuits
(mid-circuit measurements together with classical feedforward).
We here focus on the simplest scenario in the main text of the paper,
and implement a simple example in code.
The implemented MPS has a parameter controlling the correlation length
of the prepared state, which we verify explicitly.

**Relevant references:**
https://arxiv.org/pdf/2404.16083
https://arxiv.org/pdf/quant-ph/0501096
https://journals.aps.org/prxquantum/pdf/10.1103/PRXQuantum.4.020315

**Possible Drawbacks:**

**Related GitHub Issues:**

----
If you are writing a demonstration, please answer these questions to
facilitate the marketing process.

* GOALS — Why are we working on this now?

Mid-circuit measurements recently are/were a focus point in PennyLane.
MPS states are used in some quantum chemistry algorithms as initial
state.


* AUDIENCE — Who is this for?

  Researchers in quantum algorithms


* KEYWORDS — What words should be included in the marketing post?

TBD

* Which of the following types of documentation is most similar to your
file?
(more details
[here](https://www.notion.so/xanaduai/Different-kinds-of-documentation-69200645fe59442991c71f9e7d8a77f8))
    
- [ ] Tutorial
- [x] Demo
- [ ] How-to

[sc-64275]

---------

Co-authored-by: Korbinian Kottmann <[email protected]>
Co-authored-by: Ivana Kurečić <[email protected]>
  • Loading branch information
3 people authored Oct 9, 2024
1 parent a87a0ae commit acd1f70
Show file tree
Hide file tree
Showing 11 changed files with 898 additions and 0 deletions.
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.
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.
47 changes: 47 additions & 0 deletions demonstrations/tutorial_constant_depth_mps_prep.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"title": "Constant-depth preparation of matrix product states with dynamic circuits",
"authors": [
{
"username": "dwierichs"
}
],
"dateOfPublication": "2024-10-09T00:00:00+00:00",
"dateOfLastModification": "2024-10-09T00:00:00+00:00",
"categories": [
"Quantum Computing",
"Algorithms"
],
"tags": [],
"previewImages": [
{
"type": "thumbnail",
"uri": "/_static/demo_thumbnails/regular_demo_thumbnails/thumbnail_constant_depth_mps_prep.png"
},
{
"type": "large_thumbnail",
"uri": "/_static/demo_thumbnails/large_demo_thumbnails/thumbnail_large_constant_depth_mps_prep.png"
}
],
"seoDescription": "Prepare a matrix product state (MPS) in constant depth with mid-circuit measurements and feedforward control.",
"doi": "",
"references": [],
"basedOnPapers": ["10.48550/arXiv.2404.16083"],
"referencedByPapers": [],
"relatedContent": [
{
"type": "demonstration",
"id": "tutorial_mcm_introduction",
"weight": 1.0
},
{
"type": "demonstration",
"id": "tutorial_mps",
"weight": 1.0
},
{
"type": "demonstration",
"id": "tutorial_tn_circuits",
"weight": 1.0
}
]
}
851 changes: 851 additions & 0 deletions demonstrations/tutorial_constant_depth_mps_prep.py

Large diffs are not rendered by default.

0 comments on commit acd1f70

Please sign in to comment.