Complex numbers
Complex numbers are a key part of orchestrating quantum algorithms—and you can learn what they are in just a few minutes.
We’ll start with what you know: regular numbers. Then we’ll introduce “imaginary” numbers. A complex number is just a combination of a regular number with an imaginary one. Let’s go.
Real numbers ( ℝ )
Our regular, ordinary, everyday numbers are called real numbers. These include integers and decimals. You can visualize real numbers as existing along an infinite number line—with zero in the middle, positive numbers counting up forever to infinity on the right, and negative numbers doing the exact opposite on the left.
When a real number is multiplied by itself the product is always positive. For example, if we choose the number we see that . Similarly, had we chosen the negative number , the product would still be positive because two negative numbers multiplied together also produce a positive result; . For brevity we could rewrite these equations as and , respectively.
The square root of a real number has two possible answers. The square root of , for example, is both and because both are solutions for in the equation .
Imaginary numbers ( 𝕀 )
But suppose we wanted to find the square root of a negative number. Is there any number that could solve for in the equation ? Sadly, there is not. Or more precisely: there is not any real solution for the square root of a negative number.
Imaginary numbers might be considered an “intermediate impossible.” The symbol is defined as the imaginary solution to the equation , therefore . With this imaginary device we now have a solution to the above equation and that solution is . (And also , of course. We can indicate this “plus or minus” possibility as .) Let’s inspect this more closely.
is an imaginary number that consists of a real number multiplier, , and our imaginary solution to , called . Like real numbers, imaginary numbers also exist along an infinite number line. We plotted our real number line horizontally, so let’s plot our imaginary number line vertically.
Complex numbers ( ℂ )
We just saw that multiplying a real number by yields an imaginary number. But what if you add a real number to an imaginary one? Things get complex. A complex number is a number that can be expressed in the form , where is the real component and is the imaginary component. Some examples might be or .