Skip to main content

Introduction and Complex Number

Introduction to Quantum Computing

A brief history

Quantum Mechanics as a branch of physics began with a set of scientific discoveries in the late 1919th Century and has been in active development ever since. Most people will point to the 1980s as the start of physicists actively looking at computing with quantum systems1:

  • 1982: History of quantum computing starts with Richard Feynman lectures on the potential advantages of computing with quantum systems.

  • 1985: David Deutsch publishes the idea of a "universal quantum computer".

  • 1994: Peter Shor presents an algorithm that can efficiently find the factors of large numbers, significantly outperforming the best classical algorithm and theoretically putting the underpinning of modern encryption at risk (referred to now as Shor's algorithm).

  • 1996: Lov Grover presents an algorithm for quantum computers that would be more efficient for searching databases (referred to now as Grove's search algorithm).

  • 1996: Seth Lloyd proposes a quantum algorithm which can simulate quantum-mechanical systems.

  • 1999: D-Wave Systems founded by Geordie Rose.

  • 2000: Eddie Farhi at MIT develops idea for adiabatic quantum computing.

  • 2001: IBM and Stanford University publish the first implementation of Shor's algorithm, factoring 15 into its prime factors on a 7-qubit processor.

  • 2010: D-Wave One: first commercial quantum computer released (annealer).

  • 2016: IBM makes quantum computing available on IBM Cloud.

  • 2019: Google claims the achievement of quantum supremacy. Quantum Supremacy was termed by John Preskill in 2012 to describe when quantum systems could perform tasks surpassing those in the classical world.

A more complete history comes from the quantumpedia2, where the development of quantum computing is divided into five distinct periods Figure 1.1:

history
Figure 1.1: history

Prof. Andrew Chi-Chih Yao's Talk in Micius Salon

Prof. Yao gave a talk entitled "The Advent of Quantum Computing" in Micius Salon in 20183. Here are some key points:

  • Two key topics: (1) what is the nature of quantum computer?; and (2) where does quantum computer gets its power from?

  • The particle-wave duality plays the starting role in making it possible for us to do quantum computing faster than classic computing under certain circumstances

  • Richard Feynman's question: can quantum physics be simulated efficiently? Answer: unlikely by a classic computer, but hopefully by a quantum computer.

  • The comparison of classic computer and quantum computers (Figure 1.2). Classic computers manipulate classic bits 01100110\cdots with Boolean operations in {0,1}n\{0,1\}^n, while quantum computers manipulate quantum bits 0101\ket{0101\cdots} with "rotations" in C2n\mathbb{C}^{2^n}

classic-quantum
Figure 1.2: The comparison of classic and quantum computers
  • The parallel superposition is brought by the fact that each quantum bit represents not a single state, but a "probabilistic distribution" of state. Parallelism could speed up computational tasks.

  • quantum parallelism is only a metaphor, subtle and restricted, not equivalent to a parallel computer with many processors.

Complex Numbers

The original motivation for the introduction of complex numbers was seeking solutions of polynomial equations. Here is the simplest example: x2+1=0x^2+1=0 Obviously, we cannot find its solution in the set of real numbers. To solve this problem, Mathematics introduces following definitions.

Definitions

definition

An imaginary number is a real number multiplied by the imaginary unit ii, which is defined by its property i2=1i^2 = −1 or i=1i=\sqrt{-1}.

definition

A complex number is a hybrid entity which adds a real number with an imaginary number, for instance, c=a+b×i=a+bic=a+b\times i=a+bi where aa, bb are two real numbers, aa is called the real part of cc, whereas bb is its imaginary part. The set of all complex numbers will be denoted as C\mathbb{C}. When the ×\times is understood, we shall omit it.

proposition

Every polynomial equation of one variable with complex coefficients has a complex solution.

The Algebra of Complex Numbers

definition

Ordered pair representation defines a complex number as an ordered pair of reals: c=a+bi(a,b)c=a+bi\mapsto (a, b)

Hence, ordinary real numbers can be identified with pairs (a,0)(a, 0) a(a,0)a\mapsto (a, 0) whereas imaginary numbers can be identified with pairs (0,b)(0, b). In particular, i(0,1)i\mapsto (0, 1)

The four arithmetic operations between two complex numbers can be expressed as:

  • Addition: c1+c2=(a1,b1)+(a2,b2)=(a1+a2,b1+b2)c_1+c_2=(a_1, b_1)+(a_2, b_2) = (a_1+a_2, b_1+b_2)

  • Subtraction: c1c2=(a1,b1)(a2,b2)=(a1a2,b1b2)c_1-c_2=(a_1, b_1)-(a_2, b_2) = (a_1-a_2, b_1-b_2)

  • Multiplication: c1×c2=(a1,b1)×(a2,b2)=(a1a2b1b2,a1b2+a2b1)c_1\times c_2=(a_1, b_1)\times (a_2, b_2) = (a_1a_2-b_1b_2, a_1b_2+a_2b_1)

  • Subdivision: c1c2=(a1,b1)(a2,b2)=(a1a2+b1b2a22+b22,a2b1a1b2a22+b22)\frac{c_1}{c_2}=\frac{(a_1, b_1)}{(a_2, b_2)}=(\frac{a_1a_2+b_1b_2}{a_2^2+b_2^2}, \frac{a_2b_1-a_1b_2}{a_2^2+b_2^2})

With the addition and multiplication operations, we can re-write a complex number as c=a+bi=(a,b)=(a,0)+(0,b)=(a,0)+(b,0)×(0,1)c = a+bi = (a, b) = (a, 0) + (0, b) = (a, 0) + (b, 0)\times (0, 1) and from the denominator in the quotient formula in Subdivision, we can define the modulus of a complex number as: c=a+bi=+a2+b2|c|=|a+bi|=+\sqrt{a^2+b^2} which has two useful properties:

  • Property 1: c1,c2C,c1c2=c1c2\forall c_1, c_2\in\mathbb{C}, |c_1||c_2|=|c_1c_2|.

  • Property 2: c1,c2C,c1+c2c1+c2\forall c_1, c_2\in\mathbb{C}, |c_1+c_2|\leq|c_1|+|c_2|.

where the second property is also called triangular inequality of modulus operation.

Based on the above basic operations, it is easy to verify that complex numbers have the following algebraic properties:

  • Addition has an identity called additive identity: (0,0)(0, 0), such that cC,c+(0,0)=c\forall c\in\mathbb{C}, c+(0, 0)=c

  • Multiplication has an identity called multiplicative identity: (1,0)(1, 0), such that cC,c×(1,0)=(1,0)×c=c\forall c\in\mathbb{C}, c\times(1, 0)=(1, 0)\times c=c

  • Both addition and multiplication are commutative: {c1+c2=c2+c1c1×c2=c2×c1\left\{ \begin{aligned} c_1+c_2&=c_2+c_1\\ c_1\times c_2&=c_2\times c_1 \end{aligned} \right.

  • Both addition and multiplication are associative: {(c1+c2)+c3=c1+(c2+c3)(c1×c2)×c3=c1×(c2×c3)\left\{ \begin{aligned} (c_1+c_2)+c_3&=c_1+(c_2+c_3)\\ (c_1\times c_2)\times c_3&=c_1\times (c_2\times c_3) \end{aligned} \right.

  • Multiplication distributes with respect to addition: c1×(c2+c3)=c1×c2+c1×c3c_1\times(c_2+c_3)=c_1\times c_2+c_1\times c_3

  • Subtraction is defined everywhere.

  • Division is defined everywhere except when the divisor is zero.

Besides basic arithmetic operations and modulus operation, complex numbers have a unique operation called conjugation. If c=a+bic=a+bi is an arbitrary complex number, then the conjugate of cc is c=abi\overline{c}=a-bi. Two numbers related by conjugation are said to be complex conjugates of each other. The conjugation operation has several basic properties:

  • Property 1: Conjugate respects addition c1+c2=c1+c2\overline{c_1+c_2}=\overline{c_1}+\overline{c_2}.

  • Property 2: Conjugate respects multiplication c1×c2=c1×c2\overline{c_1\times c_2}=\overline{c_1}\times \overline{c_2}.

  • Property 3: Conjugate ccc\mapsto \overline{c} is bijective.

  • Property 4: The modulus squared of a complex number is obtained by multiplying the number with its conjugate c×c=c2c\times \overline{c}=|c|^2.

The Geometry of Complex Numbers

definition

The complex plane is the plane formed by the complex numbers, with a Cartesian coordinate system such that the horizontal x-axis, called the real axis, is formed by the real numbers, and the vertical y-axis, called the imaginary axis, is formed by the imaginary numbers.

In the complex plane (Figure fig:complex-plane), we can easily find that the modulus is nothing more than the length of the vector. Indeed, the length of a vector, via Pythagoras' theorem, is the square root of the sum of the squares of its edges, which is precisely the modulus, as defined in the previous section.

complex-plane
The complex plane

Next comes addition: vectors can be added using the so-called parallelogram rule illustrated by Figure parallelogram-rule-addition. In words, draw the parallelogram whose parallel edges are the two vectors to be added; their sum is the diagonal.

parallelogram-rule-addition
The parallelogram rule addition

Subtraction too has a clear geometric meaning: subtracting c2c_2 from c1c_1 is the same as adding the negation of c2c_2, i.e., c2-c_2, to c1c_1 (Figure parallelogram-rule-subtraction).

parallelogram-rule-subtraction
The parallelogram rule subtraction

To give a simple geometrical meaning to multiplication, we need to develop yet another characterization of complex numbers.

definition

The polar coordinate system is a two-dimensional coordinate system in which each point on a plane is determined by a distance ρ\rho from a reference point and an angle θ\theta from a reference direction.

Similar to the previous Cartesian representation (a,b)(a, b), the polar representation (ρ,θ)(\rho, \theta) is capable to uniquely determine a complex number because these two representations can be mutually converted:

representation 1

2 (a,b)(ρ,θ)(a, b)\mapsto (\rho, \theta) where ρ\rho is the modulus ρ=a2+b2\rho=\sqrt{a^2+b^2} and θ\theta is also easy, via trigonometry θ=tan1(ba)\theta=\tan^{-1}\Bigg(\frac{b}{a}\Bigg)

representation 2

(ρ,θ)(a,b)(\rho, \theta)\mapsto (a, b) where aa is the real part a=ρcos(θ)a = \rho\cos(\theta) and bb is the imaginary part b=ρsin(θ)b = \rho\sin(\theta)

In physics and engineering, angle θ\theta is also known as phase and distance ρ\rho is also known as magnitude. Hence, we have another definition of a complex number

definition

A complex number is a magnitude and a phase.

We are now ready for multiplication: given two complex numbers in polar coordinates, c1=(ρ1,θ1)c_1=(\rho_1, \theta_1) and c2=(ρ2,θ2)c_2=(\rho_2, \theta_2), their product can be obtained by simply multiplying their magnitude and adding their phase: c1×c2=(ρ1,θ1)×(ρ2,θ2)=(ρ1ρ2,θ1+θ2)c_1\times c_2=(\rho_1, \theta_1)\times (\rho_2, \theta_2)=(\rho_1\rho_2, \theta_1+\theta_2)

Now that we are armed with a geometric way of looking at multiplication, we can tackle division as well. After all, division is nothing more than the inverse operation of multiplication: c1c2=(ρ1ρ2,θ1θ2)\frac{c_1}{c_2}=\Bigg(\frac{\rho_1}{\rho_2}, \theta_1-\theta_2\Bigg)

On this basis, we can further derive fast nn-order power and root calculations about a complex number c=(ρ,θ)c=(\rho, \theta) cn=(ρn,nθ)c^n=(\rho^n, n\theta) and c1n=(ρ1n,1n(θ+k2π)), where k=0,1,,n1c^{\frac{1}{n}}=\Bigg(\rho^{\frac{1}{n}}, \frac{1}{n}(\theta+k2\pi)\Bigg),\ \textrm{where}\ k=0,1,\cdots,n-1

Footnotes

  1. history of quantum computing

  2. a brief history of quantum computing

  3. bilibili