In this first tutorial we are going to discuss the two-level system, i.e. the qubit, as it is the simplest unit of quantum computing systems. We discuss on a physics level with Hamiltonians etc its static properties like level splitting and avoided crossings. Then we discuss dynamical processes like Rabi oscillations and their connection to the notation of quantum computation.

This lays the basis for the discussion of quantum computation hardware in the next tutorials. Namely:

Hamiltonian, Eigenstates and Matrix Notation for the qubit

To start out, we will consider two eigenstates of the Hamiltonian with

(6)

Quite typically we might think of it as a two-level atom with states 0 and 1. The eigenstates can be expressed in matrix notation:

(7)

so that be written as a diagonal matrix

If we would only prepare eigenstates the system would be rather boring. However, we typically have the ability to change the Hamiltonian by switching on and off laser or microwave fields. We can then write the Hamiltonian in its most general form as:

Sometimes we will also chose the definition:

(8)

It is particularly useful for the case in which the coupling is created by a laser. Another useful way of thinking about the two-level system is as a spin in a magnetic field. Let us remind us of the definitions of the of the spin-1/2 matrices:

We then obtain:

(9)

You will go through this calculation in the excercise of this week.

Case of no perturbation

This is exactly the case of no applied laser fields that we discussed previously. We simply removed the energy offset and pulled out the factor , such that measures a frequency. So we have:

(10)

We typically call the energy difference between the levels or the detuning.

Case of no detuning

Let us suppose that the diagonal elements are exactly zero. And for simplicity we will also keep as it simply complicates the calculations without adding much to the discussion at this stage. The Hamiltonian reads then:

Quite clearly the states are not the eigenstates of the system anymore. How should the system be described now ? We can once again diagonalize the system and write

Two important consequences can be understood from this result:

The coupling of the two states shifts their energy by . This is the idea of level repulsion.

The coupled states are a superposition of the initial states.

This is also a motivation the formulation of the ‘bare’ system for and the ‘dressed’ states for the coupled system.

General case

Quite importantly we can solve the system completely even in the general case. By diagonalizing the Hamiltonian we obtain:

After the static case we now want to investigate the dynamical properties of the two-state system. We calculate the time evolution of with the Schrödinger equation and the perturbed Hamiltonian :

We have two coupled differential equations and we luckily already know how to solve them as we have calculated the two eigenenergies in the previous section. For the state we get

(23)

with the factors and , which are defined by the initial state. The most common question is then what happens to the system if we start out in the bare state and then let it evolve under coupling with a laser ? So what is the probability to find it in the other state :

(24)

As a first step, we have to apply the initial condition and express in terms of :

(25)

By equating the coefficients we get for and :

(26)

One thus gets:

(27)

can be expressed with and alone. The obtained relation is called Rabi’s formula:

(28)

def rabi_osc(time: float, omega: float, delta: float) -> float:
"""
time evolution in the Rabi oscillation
Args:
time: time at which we measure
omega: coupling strength
delta: detuning
Returns:
float: probability to be in the excited state
"""
return 1/(1+(delta/omega)**2)*np.sin(np.sqrt(omega**2+delta**2)*time/2)**2
omega = 2*np.pi*1
time = np.linspace(0,2, 100)
delta = 0
f, ax = plt.subplots()
ax.plot(time, rabi_osc(time, omega, 0), label = "")
ax.plot(time, rabi_osc(time, omega, omega), label = "")
ax.plot(time, rabi_osc(time, omega, 10*omega), label = "")
ax.legend()
ax.set_xlabel("time ")
ax.set_ylabel("probability ")

A few key words concerning Rabi oscillations are in order:

The probability to be in the excited state is indeed maximal if there is zero detuning.

The speed of the oscillations get higher with higher detuning. This fact is often overlooked at first sight but key in approximations like the rotating wave approximation.

A few words on the quantum information notation

The qubit is THE basic ingredient of quantum computers. However, you will typically not find Pauli matrices and other common notations of two-state systems in the platforms. The typical notation there is:

is a rotation around the x-axis for an angle .

Same holds for and .

denotes the rotation around the x axis for an angle . So it transforms into and vise versa.

denotes the rotation around the x axis for an angle . So it transforms into and vise versa.

The most commonly used gate is actually one that we did not talk about at all, it is the Hadamard gate, which transforms into and into :

(30)

Summary

In this tutorial we have seen the basic properties of qubits. For a much more detailed discussion we refer the reader to the nice qiskit textbook. We have seen how qubits are controlled through external fields and how the most common gates of quantum information are realized.

In the next tutorial we will discuss the second important building block of quantum hardware, i..e the quantum harmonic oscillator. This lays the groundwork for more detailed discussions of different platforms in the next steps.

In this first tutorial we are going to discuss the two-level system, i.e. the

qubit, as it is the simplest unit of quantum computing systems. We discuss on a physics level with Hamiltonians etc its static properties like level splitting and avoided crossings. Then we discuss dynamical processes like Rabi oscillations and their connection to the notation of quantum computation.This lays the basis for the discussion of quantum computation hardware in the next tutorials. Namely:

## Hamiltonian, Eigenstates and Matrix Notation for the qubit

To start out, we will consider two eigenstates of the Hamiltonian with

(6)

Quite typically we might think of it as a two-level atom with states 0 and 1. The eigenstates can be expressed in matrix notation:

(7)

so that be written as a diagonal matrixIf we would only prepare eigenstates the system would be rather boring. However, we typically have the ability to change the Hamiltonian by switching on and off laser or microwave fields. We can then write the Hamiltonian in its most general form as:

Sometimes we will also chose the definition:

(8)

It is particularly useful for the case in which the coupling is created by a laser. Another useful way of thinking about the two-level system is as a spin in a magnetic field. Let us remind us of the definitions of the of the spin-1/2 matrices:

We then obtain:

(9)

You will go through this calculation in the excercise of this week.## Case of no perturbation

This is exactly the case of no applied laser fields that we discussed previously. We simply removed the energy offset and pulled out the factor , such that measures a frequency. So we have:

(10)

We typically call the energy difference between the levels or thedetuning.## Case of no detuning

Let us suppose that the diagonal elements are exactly zero. And for simplicity we will also keep as it simply complicates the calculations without adding much to the discussion at this stage. The Hamiltonian reads then:

Quite clearly the states are not the eigenstates of the system anymore. How should the system be described now ? We can once again diagonalize the system and write

This is also a motivation the formulation of the ‘bare’ system for and the ‘dressed’ states for the coupled system.

## General case

Quite importantly we can solve the system completely even in the general case. By diagonalizing the Hamiltonian we obtain:

(12)

The Eigenstates then read:

(15)

where(16)

## Dynamical properties of the qubit

After the static case we now want to investigate the dynamical properties of the two-state system. We calculate the time evolution of with the Schrödinger equation and the perturbed Hamiltonian :

We have two coupled differential equations and we luckily already know how to solve them as we have calculated the two eigenenergies in the previous section. For the state we get

(23)

with the factors and , which are defined by the initial state. The most common question is then what happens to the system if we start out in the bare state and then let it evolve under coupling with a laser ? So what is the probability to find it in the other state :(24)

As a first step, we have to apply the initial condition and express in terms of :(25)

By equating the coefficients we get for and :(26)

One thus gets:(27)

can be expressed with and alone. The obtained relation is called Rabi’s formula:(28)

A few key words concerning Rabi oscillations are in order:

rotating wave approximation.## A few words on the quantum information notation

The qubit is THE basic ingredient of quantum computers. However, you will typically not find Pauli matrices and other common notations of two-state systems in the platforms. The typical notation there is:

The most commonly used gate is actually one that we did not talk about at all, it is the Hadamard gate, which transforms into and into :

(30)

## Summary

In this tutorial we have seen the basic properties of qubits. For a much more detailed discussion we refer the reader to the nice qiskit textbook. We have seen how qubits are controlled through external fields and how the most common gates of quantum information are realized.

In the next tutorial we will discuss the second important building block of quantum hardware, i..e the quantum harmonic oscillator. This lays the groundwork for more detailed discussions of different platforms in the next steps.