Qubit operations and Quantum Measurement in Mathematica

This is a short note on how to get started with Quantum Computing with Mathematica.

This is not intended to be either comprehensive or pedagogical. There are several resources online like http://www.quantiki.org/ and http://qubit.org/

First Download the excellent Mathematica Package by José Luis Gómez-Muñoz and Francisco Delgado from here http://homepage.cem.itesm.mx/lgomez/quantum/index.htm . The instructions to install them are given here http://homepage.cem.itesm.mx/lgomez/quantum/installation.pdf


In[1]:=

qubit_operation_Quantum_Measurement_1.gif

In[2]:=

qubit_operation_Quantum_Measurement_6.gif

Out[2]:= MatrixForm=

qubit_operation_Quantum_Measurement_7.gif

In[3]:=

qubit_operation_Quantum_Measurement_8.gif

Out[3]=

qubit_operation_Quantum_Measurement_9.gif

In[4]:=

qubit_operation_Quantum_Measurement_10.gif

Out[4]=

qubit_operation_Quantum_Measurement_11.gif

In[5]:=

qubit_operation_Quantum_Measurement_12.gif

Out[5]=

qubit_operation_Quantum_Measurement_13.gif

In[6]:=

qubit_operation_Quantum_Measurement_14.gif

Out[6]//MatrixForm=

qubit_operation_Quantum_Measurement_15.gif

qubit_operation_Quantum_Measurement_16.gif

In[8]:=

qubit_operation_Quantum_Measurement_17.gif

Out[8]=

qubit_operation_Quantum_Measurement_18.gif

In[9]:=

qubit_operation_Quantum_Measurement_19.gif

Out[9]=

Probability Measurement State
qubit_operation_Quantum_Measurement_20.gif qubit_operation_Quantum_Measurement_21.gif qubit_operation_Quantum_Measurement_22.gif
qubit_operation_Quantum_Measurement_23.gif qubit_operation_Quantum_Measurement_24.gif qubit_operation_Quantum_Measurement_25.gif
Probability Measurement State

In[10]:=

qubit_operation_Quantum_Measurement_26.gif

Out[10]=

Probability Measurement State
qubit_operation_Quantum_Measurement_27.gif qubit_operation_Quantum_Measurement_28.gif qubit_operation_Quantum_Measurement_29.gif
qubit_operation_Quantum_Measurement_30.gif qubit_operation_Quantum_Measurement_31.gif qubit_operation_Quantum_Measurement_32.gif
qubit_operation_Quantum_Measurement_33.gif qubit_operation_Quantum_Measurement_34.gif qubit_operation_Quantum_Measurement_35.gif
qubit_operation_Quantum_Measurement_36.gif qubit_operation_Quantum_Measurement_37.gif qubit_operation_Quantum_Measurement_38.gif
Probability Measurement State

In[11]:=

qubit_operation_Quantum_Measurement_39.gif

Out[11]=

Probability Measurement State
qubit_operation_Quantum_Measurement_40.gif qubit_operation_Quantum_Measurement_41.gif qubit_operation_Quantum_Measurement_42.gif
qubit_operation_Quantum_Measurement_43.gif qubit_operation_Quantum_Measurement_44.gif qubit_operation_Quantum_Measurement_45.gif
qubit_operation_Quantum_Measurement_46.gif qubit_operation_Quantum_Measurement_47.gif qubit_operation_Quantum_Measurement_48.gif
qubit_operation_Quantum_Measurement_49.gif qubit_operation_Quantum_Measurement_50.gif qubit_operation_Quantum_Measurement_51.gif
Probability Measurement State

For those of you who have Mathematica Installed here is the Notebook File

Repeat Caveat, this is certainly non-exhaustive and is meant to be minimal. José himself has lot of sample notebooks and youtube tutorials which you may want to checkout for indepth study.

Written on August 11, 2012