Halaman ini belum diterjemahkan. Anda sedang melihat versi asal dalam bahasa Inggeris.
Utility-scale experiment II
Yukio Kawashima (12 July 2024)
Download the pdf of the original lecture. Note that some code snippets might become deprecated since these are static images.
Approximate QPU time to run this experiment is 2 m 30 s.
(Note that this notebook used texts, illustration, and codes from a now-deprecated tutorial notebook for Qiskit Algorithms.)
1. Introduction and review of time-evolution
This notebook follows the methods and techniques of lesson 7. Our goal is to numerically solve the time-dependent Schrödinger equation. As discussed in lesson 7, Trotterization consists in the successive application of a quantum gate or gates, chosen to approximate the time evolution of a system for a time slice. We repeat that discussion here for convenience. Feel free to skip to the code cells below if you have recently reviewed lesson 7.
Following from the Schrödinger equation, the time evolution of a system initially in the state takes the form:
where is the time-independent Hamiltonian governing the system. We consider a Hamiltonian that can be written as a weighted sum of Pauli terms , with representing a tensor product of Pauli terms acting on qubits. In particular, these Pauli terms might commute with one another, or they might not. Given a state at time , how do we obtain the system's state at a later time using a quantum computer? The exponential of an operator can be most easily understood through its Taylor series:
Some very basic exponentials, like can be implemented easily on quantum computers using a compact set of quantum gates. Most Hamiltonians of interest will not have just a single term, but will instead have many terms. Note what happens if :
When and commute, we have the familiar case (which is also true for numbers, and variables and below):
But when operators do not commute, terms cannot be rearranged in the Taylor series to simplify in this way. Thus, expressing complicated Hamiltonians in quantum gates is a challenge.
One solution is to consider very small time , such that the first-order term in the Taylor expansion dominates. Under that assumption:
Of course, we might need to evolve our state for a longer time. That is accomplished by using many such small steps in time. This process is called Trotterization:
Here is the time slice (evolution step) that we are choosing. As a result, a gate to be applied times is created. A smaller timestep leads to a more accurate approximation. However, this also leads to deeper circuits which, in practice, leads to more error accumulation (a non-negligible concern on near-term quantum devices).
Today, we will study the time evolution of the Ising model on linear lattices of and sites. These lattices consist of an array of spins that interact only with their nearest neighbors. These spins can have two orientations: and , which correspond to a magnetization of and respectively.
where describes the interaction energy, and the magnitude of an external field (in the x-direction above, but we will modify this). Let us write this expression using Pauli matrices, and considering that the external field has an angle with respect to the transversal direction,
This Hamiltonian is useful in that it allows us to easily study the effects of an external field. In the computational basis, the system will be encoded as follows:
| Quantum state | Spin representation |
|---|---|