Child pages
  • Mox_quantum_computing_qutip
Skip to end of metadata
Go to start of metadata

Below are instructions to install and use QuTiP on mox. Here abc is your userid and xyz is your group name.

Install your own copy of Anaconda Python as shown in the section on "Install Anaconda Python" in below link:

Hyak python programming

Installing QuTiP:

1) login to mox.hyak:

ssh abc@mox.hyak.uw.edu


2) get a build node:

srun -p xyz -A xyz  --time=4:00:00 --mem=100G --pty /bin/bash


3) Install qutip:

mkdir /gscratch/xyz/abc/qutipstuff

cd /gscratch/xyz/abc/qutipstuff

wget https://github.com/qutip/qutip/archive/v4.3.1.tar.gz

tar -xvf v4.3.1.tar.gz

cd qutip-4.3.1

python setup.py install --with-openmp

cd .. ( it is important to get out of the qutip-4.3.1 directory before using qutip)


4) Calibrate OPENMP for qutip:

python

import qutip

You will see below message:

"Calibrating OPENMP threshold..."


Using QuTip:

python
import qutip
import math

#multiply Pauli matrices

qutip.sigmax()*qutip.sigmax()

#rotate
qutip.rz(math.pi/2)


QuTiP documentation:

More details are at:

http://qutip.org/

http://qutip.org/tutorials.html

http://qutip.org/documentation.html


  • No labels