Skip to content

Updates for #3695 #3709

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

Open
wants to merge 10 commits into
base: cp/qcip-ep6
Choose a base branch
from
Open

Updates for #3695 #3709

wants to merge 10 commits into from

Conversation

0sophy1
Copy link
Collaborator

@0sophy1 0sophy1 commented Aug 13, 2025

I added explanations for the formulas that appear in the video, as I thought they were necessary.
More to be pushed and work done before the utility paper replication. I will finish add contents by the end of tomorrow.

Added some details to match the video.
More to be pushed and work done before the utility paper replication. I will finish add contents by the end of tomorrow.
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@qiskit-bot
Copy link
Contributor

One or more of the following people are relevant to this code:

@0sophy1 0sophy1 changed the title Add explanations Updates for #3695 Aug 13, 2025
"$$\n",
"\n",
"where each term $h_i$ acts on one of the $N$ local subsystems of the total Hamiltonian $H$. In the case of indistinguishable elementary particles, it is important to determine whether the system involves fermions or bosons, as this affects the system's statistics and how it must be modeled. In practice, people are often interested in physical systems in which the elements are presumed to be well-separated or labeled, and thus distinguishable, as in spins on a lattice.\n",
"where each term $H_i$ acts on one of the $N$ local subsystems (like a single particle or a small group of particles) of the total Hamiltonian $H$. In the case of indistinguishable elementary particles, it is important to determine whether the system involves fermions or bosons, where fermions obey the Pauli Exclusion Principle, meaning no two identical fermions can occupy the same quantum states like electrons. Unlike fermions, multiple bosons can exist in the same quantum state, and these difference affects the system's statistics and how it must be modeled.\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"where each term $H_i$ acts on one of the $N$ local subsystems (like a single particle or a small group of particles) of the total Hamiltonian $H$. In the case of indistinguishable elementary particles, it is important to determine whether the system involves fermions or bosons. Fermions, like electrons, obey the Pauli Exclusion Principle, meaning no two identical fermions can occupy the same quantum state. Unlike fermions, multiple bosons can exist in the same quantum state, and this difference affects the system's statistics and how it must be modeled.\n",
"\n",
"In practice, people are often interested in physical systems in which the elements are presumed to be well-separated or labeled, and thus distinguishable, as in spins on a lattice.\n",

"\n",
"![A lattice with spins and a molecule which is bonded together using electrons which are fermions.](/learning/images/courses/quantum-computing-in-practice/simulating-nature/spins-fermions.svg)\n",
"\n",
"This system consists of magnetic dipole spins arranged on a lattice, which are treated as distinguishable particles by counting their address. This system is described by the Transverse-Field Ising Model, and its Hamiltonian is constructed from the sum of two parts:\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

address->location

"\n",
"![A flow chart showing different potential types of mappings for different system types including bosons, fermions, and distinguishable particles like spins on a lattice.](/learning/images/courses/quantum-computing-in-practice/simulating-nature/ham-encoding.svg)\n",
"\n",
"If you have a system with distinguishable particles, like $1/2$ spins fixed on a lattice, which we took a simple look at above, the Hamiltonian is often already written in a language compatible with qubits. The Pauli-Z operator, for instance, naturally describes a spin's up or down, and no special encoding is needed.\n",
"\n",
"When simulating indistinguishable particles of fermions or bosons, it is necessary to apply an encoding transformation. These particles are used to describe within a special mathematical framework called `second quantization`, which tracks the occupation number of each quantum state by introducing `creation` and `annihilation` operators, where the creation operator $\\hat{a}_i^\\dagger$ adds one particle to state $i$ while the annihilation operator $\\hat{a}_i$ removes one particle from state $i$. Based on this second quantization framework, the fermion can be transformed by Bravyi-Kitaev and Jordan-Wigner. Jordan-Wigner transformation defines the fermionic creation operator\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When simulating indistinguishable fermions or bosons, it is necessary to apply an encoding transformation. These particles are typically described by a special mathematical framework called second quantization, which tracks the occupation number of each quantum state by introducing creation and annihilation operators, where the creation operator $\hat{a}_i^\dagger$ adds one particle to state $i$ while the annihilation operator $\hat{a}_i$ removes one particle from state $i$. Based on this second quantization framework, the fermion can be transformed by Bravyi-Kitaev and Jordan-Wigner. Jordan-Wigner transformation defines the fermionic creation operator\n",

"|\\phi\\rangle_{HF} = \\prod\\limits_{i=1}^k \\hat{a}_i^\\dagger |0\\rangle ^{\\otimes N} = \\hat{a}_1^\\dagger ... \\hat{a}_k^\\dagger |0_1 ... 0_k ... 0_N\\rangle\n",
"$$\n",
"\n",
"Additionally, an easily prepared ansatz with significant overlap to the true ground state can serve as a good initial state for chemistry problems, such as finding the ground state energy.\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...ground state energy of a molecule.

"\n",
"$$\n",
"|\\psi\\rangle = \\sum_{i=0}^{2^n-1}{a_i |c_i\\rangle}=\\hat{O}|0\\rangle^{\\otimes n}\\\\\n",
"\\text{with} \\qquad \\sum_{i=0}^{2^n-1}{|a_i^2|}=1\n",
"$$\n",
"\n",
"\n",
"However, this process often requires an exponential number of CNOT gates, making it generally resource-intensive. We often focus on preparing initial states for which implementation resource demands are more modest. For example, product states, where qubits are not entangled, can be prepared using only single-qubit operations, significantly reducing complexity."
"However, this process often requires an exponential number of CNOT gates, making it generally resource-intensive. We often focus on preparing initial states for which the implementation resource demands are more modest. For this reason, we often focus on preparing initial states that are less complex. A common and practical choice is a product state, where qubits are not entangled, can be prepared using only single-qubit operations, significantly reducing the resource demands of the state preparation and the complexity."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A common and practical choice is a product state, in which qubits are not entangled, and which can be prepared using only single-qubit operations. This significantly reduces the resource demands of the state preparation and the complexity.

"\n",
"where we have set $\\hbar=1$ by convention.\n",
"However, building a quantum circuit that directly implements the full operator $e^{-iHt}$ is typically impossible when our Hamiltonian is a sum of different parts, and this is the time we need the Trotterization.\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sum of different parts. This is where we use trotterization.

"\n",
"![Spins on a lattice that point either up or down.](/learning/images/courses/quantum-computing-in-practice/simulating-nature/spins-lattice.svg)\n",
"\n",
"Since this series is titled Quantum Computing in Practice, we will also cover the experimental techniques used to improve the quality of the results. One important procedure involves identifying and removing \"bad\" qubits—those with low gate fidelities or short decoherence times—that could significantly impact the experiment’s outcome. Such problematic qubits may arise from poor calibration or interactions with two-level systems (TLS). Removing these qubits alters the hardware’s native topology, effectively changing the lattice on which the system is simulated.\n",
"\n",
"Additionally, we will discuss how to construct the parametrized quantum circuit that implements the system’s time-evolution using trotterization. A key part of this process is identifying entangling layers within the circuit, which play a crucial role in the main error mitigation technique we will introduce later.\n",
"Additionally, we will discuss how to construct the parametrized quantum circuit that implements the system’s time-evolution using Trotterization. A key part of this process is identifying entangling layers within the circuit, which play a crucial role in the main error mitigation technique we will introduce later.\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trotterization. It is actually lower-case. It is very confusing to me as well. How can "trotterization" be lower-case, but "Hamiltonian" be capitalized!? It turns out that if it is an object that would historically have been referred to using the creator's exact name, like "Hamilton's matrix", then the resulting noun "Hamiltonian" gets capitalized. If it is a process associated with a person, the new word is just an ordinary word, no capitalization. I only know this because I recently looked it up in frustration. See for example: https://courses.physics.illinois.edu/phys496/sp2017/Lectures/Caps&Acronyms-ClickerQuestions.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants