Notations
Let's begin from the very scratch. We will start by understanding the notations and conventions used in quantum computing. This will help us in understanding the rest of the concepts easily.
1. Bra-Ket Notation aka Dirac Notation
The most common notation used in quantum mechanics is the bra-ket
notation, also known as the Dirac
notation. You must know about this because because you will come across it when you read research papers involving quantum computing.
The notation uses angle brackets, 〈 〉
, and a vertical bar,|
, to construct “bras” and “kets”. A “ket” looks like this: |v〉
. Mathematically it denotes a vector, v, in a complex vector space V. Physically, it represents the state of a quantum system.
A “bra” looks like this:〈f|
. Mathematically, it denotes a linear function f: V → C, i.e. a linear map that maps each vector in V to a number in the complex plane C.
Letting a linear function〈f| act on a vector |v〉is written as: 〈f|v〉⍷ C
. This is called the inner product of the two vectors.
2. Vectors
Vector expressed as ket |v〉, v
is represented as:
Vector represented as bra 〈v|, v
is represented as:
In component form
3. Inner Product aka Dot Product
The inner product of two vectors |u〉 and |v〉 is denoted as 〈u|v〉. It is a complex number and scalar. The inner product of two vectors is given by:
4. Outer Product aka Tensor Product
The outer product of two vectors |u〉 and |v〉 is denoted as |u〉〈v|. It is a matrix. The outer product of two vectors is given by: