Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up tutorials #34

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tutorials/01_chemistry_hamiltonian.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@
"source": [
"First, we will transform the counts into a bitstring matrix and probability array for post-processing.\n",
"\n",
"Each row in the matrix represents one unique bitstring. Since qubits are normally indexed from the right of a bitstring, column ``0`` represents qubit $N-1$, and column $N-1$ represents qubit ``0``, where $N$ is the number of qubits.\n",
"Each row in the matrix represents one unique bitstring. Since qubits are normally indexed from the right of a bitstring, column index ``0`` represents qubit ``N-1``, and column index ``N-1`` represents qubit ``0``, where ``N`` is the number of qubits.\n",
"\n",
"The alpha particles are represented in the column range $[N / 2, N]$, and the beta particles are represented in the column range $[0, N / 2)$."
"The alpha particles are represented in the column range ``(N, N/2]``, and the beta particles are represented in the column range ``(N/2, 0]``."
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/02_qubit_hamiltonian.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"In this tutorial we implement a [Qiskit pattern](https://docs.quantum.ibm.com/guides/intro-to-patterns) showing how to post-process quantum samples to approximate the minimum eigenvalue and spin-spin correlators for a ``22``-site XX-Z spin-1/2 chain. We will follow a sample-based quantum diagonalization approach [[1]](https://arxiv.org/abs/2405.05068).\n",
"\n",
"While a Qiskit pattern typically involves 4 steps, the aim of this tutorial is to focus on the post-processing of the samples obtained from a quantum circuit whose support coincides with that of the ground state. Consequently, we generate a synthetic set of bitstrings to define the subspace and do not design an ansatz nor sample from a quantum circuit in this tutorial.\n",
"While a Qiskit pattern typically involves 4 steps, the aim of this tutorial is to focus on the post-processing of the samples obtained from a quantum circuit whose support coincides with that of the eigenstate corresponding to the minimum eigenvalue. Consequently, we generate a synthetic set of bitstrings to define the subspace and do not design an ansatz nor sample from a quantum circuit in this tutorial.\n",
"\n",
"The pattern we will implement is as follows:\n",
"\n",
Expand All @@ -20,7 +20,7 @@
" - N/A: Will generate synthetic quantum samples\n",
"4. **Step 4: Post-process results**\n",
" - Project the Hamiltonian onto the subspace spanned by the samples\n",
" - Diagonalize the Hamiltonian in the subspace to approximate the ground state\n",
" - Diagonalize the Hamiltonian in the subspace to approximate the minimum eigenstate\n",
" - Calculate spin-spin correlators for each site, $l$"
]
},
Expand Down