Reading Week 5 - Irrelevant Global Phase

Ch. 5.4 (cont.) Irrelevance of Phase

5.4.8: Global Phase and Its Irrelevance

Recall:

|ψ=a|0+b|1

If we write a,b in polar form:

|ψ=r1eiθ1|0+r2eiθ2|1

Rearranging:

|ψ=eiθ1(r1|0+r2ei(θ2θ1)|1)

Calculating |ψ|2 makes the eiθ1 part go away as it's magnitude is just 1. This factor is the global phase and doesn't affect quantum computation. The quantity (θ2θ1) is the relative phase and is observable. To see why, consider:

|=12(|0|1)

Applying X we get:

X|=12(X|0X|1)=12(|1|0)=112(X|0X|1) =|

Thus a global phase of 1 is added. But this phase is not observable.

Now instead consider the QC:

Pasted image 20240501225656.png

We begin with 0's at initialization:

|ψ=|0|0

Apply H-gate to q[0] and an X gate to q[1]

|ψ=12(|0+|1)|1

Apply H gate to q[1]:

|ψ=12(|0+|1)12(|0|1)

Here transferring the global phase occurring in a qubit into a relative phase of another qubit using a controlled gate is called phase kickback (or just kickback).

5.4.8.2: Sequence of Gates

We can combine sequences of gates to get a definition of the one, unified gate. For instance, for HXH you can do the math and the following identities:

Pasted image 20240506133557.png

These identities means we can make composite gates, which transform Pauli operators into other Pauli operators, forming the basis of universality.

5.4.8.3: Universality

In classical computing, we have a fundamental set of building blocks (gates) that compose all possible boolean functions we have. Choosing the two fundamental ones from OR and NOT are not good choices since they alone cannot make something like an XOR. Instead, using NAND and NOR are better as they are complete by themselves and can construct all other logic gates. Hence NAND and NORE are the universal logic gates in the classical world.

We can similarly define universal quantum gates, where any Quantum Computer can reduce these gates to a fundamental combination of ones from this unique set. The problem is that there's so many gates that it may be impossible to actually implement universality using a finite number of them, so we can use approximations. The Solovay-Kitaev Theorem says that approximations to any desired gate can be created using a fairly short sequence of gates from the generating set. In math terms, unitary U simulates the required unitary U to an accuracy within ε if UUε.

Solovay-Kitaev Theorem

A set of G quantum gates are universal if:

U,ε>0g1,...,gnG:UUg1,Ug2,...,Ugnε

A common universal set of quantum gates are the Clifford Group and the T-gates.

5.4.9: Circuit Optimization

5.4.9.1: Hardware Topology

From Reading Week 5 - Irrelevant Global Phase#5.4.8.2 Sequence of Gates we learned that a sequence of gates reduces to single-qubit operators, so there is some scope for circuit level optimizations. This is required to run some circuits on NISQ processors, due to physical constraints. They have a hardware topology with a limited set of basis gates and qubit connections. Arbitrary Quantum Circuits need to be converted to sequences of these G gates.

Consider constraints to just having access to CNOT and SWAP operations. The imbq_athens has a topology such as:

Pasted image 20240514130323.png

Notice:

The imbq_athens has a list of basis gates for it:

[’id’, ’rz’, ’sx’, ’x’, ’cx’, ’reset’]

These are hardware gates because they are implemented at the hardware level. On the contrast, gates like Z, T, ... are not performed by hardware. Instead, these are implemented as virtual gates (also known as frame changes, or free gates) by making them as compositions from the hardware gates.

Running:

qc_basis = qc.decompose()
qc_basis.draw(output='mpl')

Gives us a difference between our original qc and the one that can be made for the imbq_athens:

Pasted image 20240514130802.png

Pasted image 20240514130813.png

Ch 4.1: Review of QC Vocab

Vocab Term Definition
qubit quantum data modality
Universal Quantum Computer Abstract machine used to model the effect of a QC
Quantum Annealing Procedure for finding a heuristic algorithm to find a global minimum from a finite set of candidates.
Quantum Tunneling The property that electrons can potentially leave a barrier even without enough energy, via their probability function.
Quantum Speedup The scenario where no classical computer can beat the one that the QC can (where the QC does it in polynomial time, but the classical computer can't)
Quantum Advantage/Quantum Supremacy The notion that some calculations are inherently better to do on a QC rather than a Classical Computer
Decoherence The process in which the qubit loses quantum information over time
Quantum Volume A way to measure and compare progress towards improved system-wide gate error rates for near-term quantum computation and error-correction experiments. It is a single-number metric that a concrete protocol can measure using a near-term quantum computer of modest size n50.

Ch 4.2: Classical Computers - A Recap

Digital bits are 0 or 1 exclusive. Qubits are a superposition of these two states.

Ch 4.3: Qubits and Usability

Many types of qubit devices are in the works:

Digital computers are made on semiconductor material. QC's are made differently based on:

Ch 4.4: Noisy Intermediate Scale Quantum Technology

Noisy Intermediate Scale Quantum Technology denotes the current quantum computing era. While some algorithms are able to run, they are sensitive to quantum errors. This limits their usability.

According to Prof. John Preskill:

“Noisy Intermediate-Scale Quantum (NISQ) technology will be available in the near future. Quantum computers with 50–100 qubits may be able to perform tasks which surpass the capabilities of today’s classical digital computers, but noise in quantum gates will limit the size of quantum circuits that can be executed reliably. NISQ devices will be useful tools for exploring many-body quantum physics, and may have other useful applications, but the 100-qubit quantum computer will not change the world right away—we should regard it as a significant step toward the more powerful quantum technologies of the future. Quantum technologists should continue to strive for more accurate quantum gates and, eventually, fully fault-tolerant quantum computing.”

Ch 4.5: Qubit Metrics

4.5.1: Spin or Energy Relaxation Time T1

This measures the characteristic time for the qubit to return to ground state from an exited state due to spin-environment coupling.

To measure:

  1. Put the state as |0
  2. Apply an X-transform and wait time t till we measure |1

Pasted image 20240514132538.png

4.5.2: Dephasing Time T

This is the time for the bloch vector to diffuse to the equator.

4.5.3: Decoherence Time T2

Assume a qubit at |=|0+|12. When the qubit is not interacting with the environment, it undergoes constant procession at a frequency ω, the qubit frequency at an azimuthal angle . Via the environment, the Bloch Vector start to decohere:

Pasted image 20240514132822.png

To get to 4.7.b (total decoherence), is the T or the Decoherence Time. Some experiments that help measure the decoherence time are:

4.5.4: Hann Echo T2

  1. Prepare the qubit to the | state described prior via a Hadamard Gate
  2. Wait half the time t2
  3. Apply X and wait for t2 again
  4. Apply H again and measure the probability of it in state |0

The time t here is the time of coherence.

4.5.5: Ramsay Experiment T2

  1. Prepare | like prior
  2. Wait time t
  3. Apply H again and measure the probability of being in state |0

4.5.6: Gate Time

The number of gate operations one can perform before the qubit completely decoheres and loses its usable lifetime. The gate time is:

T2T(100,10.000)

for leading qubit modalities.