# An Overview

As discussed in the last post, the nature of superposition can be interpreted by the implementation of qubits. A qubit can be interpreted as a matrix and mathematically applied to quantum gate transformations, thus allowing for the representation of quantum states. Qubit quantum state calculations can be represented using matrices and modeled by graphs, where the probability of a movement between vertices corresponds to the probability of the of movement between a state position.

Before reaching the mathematical theory, there are a few notations that must be defined. One of the most important being the ket. This is the notation for performing quantum operations on qubits to create quantum states of complex numbers denoted by column vectors. Along with this we denote **M** as a matrix with entries for the probability of a movement between vertices, or positions. **X** as matrix containing entries for the probability of the system at its current state. When in reference to quantum computations these matrix entries will be in terms of complex numbers where . Lastly, we want to recognize the Hadamard matrix, which is the controlled quantum gate used to transform the ket matrix into superposition. The Hadamard matrix will be denoted with **H** where **H **.

# Principle Operations

First, it is important to note the sizes of matrices **M** and **X**. **M** is always a square matrix made up of size where **N** is the number of vertices, or possible positions. **X** is always a column vector denoting the state of every vertex, or the state of the system. Next, we must cover the matrix multiplication of , were the product is equal to the state of the system after **K** time clicks. This matrix can be denoted as **Y**. The number of time clicks, **K, **is equal to the number of times **M **is multipled by itself. Therefore, the column vector **Y** with entries of the probability of the state being in each position is equal to . However, when in relation to the set we will denote **M** with **U** as unitary where the sum of all entries modules squared is equal to one, this allows us to fill our matrix with complex numbers, correctly representing the qubit transformation of superposition when applying matrix **H**.

By definition the conjugate transpose of a unitary matrix is also its inverse, we will take its conjugate transpose, or adjoint, as **U**(cross). The importance of this is that by taking the adjoint of **U** at time and applying it our state we will effectively receive the probability of the state at . By doing this, we allow in the analysis of results without analyzing input, substantially cutting down on the level of system decoherence.

The principle notation involving the joining of two quantum states is denoted as the tensor product. This is the scalar multiplication of matrix by another, in order to combine the probability of being in both states at once. The tensor product is denoted by and is the main operation applied to qubits in order to combine states. From here we apply our gate operations in the same respect, by using the tensor product we can apply our unitary matrices of the probability of state movement, such as **H**, to the matrix of a qubit. Where represents the system at time , if then the qubit system at time would be in superposition. It is important to note that the column vector representing a qubit grows exponentially with the number of bits allocated. That is a matrix.

Once a qubit has moved states with the tensor product of a unitary complex matrix it is necessary to realize how we evaluate these state probabilities as real numbers. Finding the norm of the matrix by taking the product of square roots of its vector rows and vector columns is most crucial. Then by applying this value as a scalar to the original qubit matrix and taking the square modules, we receive the probability of being in each position at time .

# Example Operations

Here are a few examples of the above operations:

Movement between time t and described by matrices

.

**M** describes the probability of movement between the three positions. Probability of moving from positions . **X** describes the static probabilities of the positions the state is currently occupying. While **Y** describes those same static probabilities after a movement. Notice the sum of all columns or rows is equal to 1.

Next we will look at transforming a state of complex numbers, such as the Hadamard matrix, back to real numbers.

First we notice , where there is a zero probability that the qubit is in state 0. Now lets consider a qubit that has been moved through a few quantum states and has different probabilities correlating to the possibilities of being in states 0 and 1. We can define such a qubit as,

Here we evaluate the norm and then re-apply this to our original qubit.

Now we divide **S** by and then evaluate the qubit by taking . Such as:

From the transformed matrix we can see the probability of qubit **S** being in state and the probability of state . We can see this is correct because the two probabilities add to one.

# Deutsch’s Algorithm

Deutsch’s Algorithm is the one of the most representable quantum algorithms. This algorithm consists of four black box functions with an input of one or zero and an output one or of zero. Where . If is balanced and is constant. Out of out four functions, two are balanced and two are constant. We must realize that these functions are unviewable and therefore we cannot know what operations are being performed on the input. On a normal classical computer it would take at least two evaluations in order to concur the function being used. However, the analysis of the quantum states allows for the determination with only one evaluation.

Using the principles of superposition on qubits we can evaluate both inputs at once to effectively cut our computational complexity in half.

From the diagram above we can see that by applying two qubits as the inputs and subsequently turning them both in a superposition, the value of the qubits becomes negligible as they have equal probability of being in both states. We represent this as . We use the tensor product to combine these two states to be the result . This combined state can then be applied to our function as one input. After some simplifying of the result we obtain a piece-wise function determining the function used based on the qubit output.

We then effectively apply our last **H**, as it is its own inverse, to move these qubits out of superposition for observation at and see the constraint on balanced or constant function. If the results qubit is in a state of then we evaluate the function as constant, otherwise is balanced. We see this where

The computational operations saved by using this algorithm may seem negligible, but when expanded into an algorithmic form the ability to evaluate data to this respect can have a quadratic decrease on time complexity. This can be shown in the implementation of Grover’s algorithm and the reduced searching time of an unordered list based on exponential speed up.

**Written By: **Mitchell Mesecher

**References: **

An Introduction to Quantum Computing, *Noson S. Yanofsky*