This software code is to accompany the paper "Quantum State Tomography: 'the best' is the enemy of 'good enough'" by M. Kaznady and D. F. V. James (submitted to Physical Review A, 2008) . All the numerics in the paper were performed using this source code.
IMPORTANT: all researchers using this code should cite the above paper in any relevant publications.
Click on the "Files" tab at the top left-hand corner to view the detailed documentation of the source code.
Source code is available here: http://www.physics.utoronto.ca/~dfvj/publications/NST.tar.gz
We used GNU C compiler of various versions from the GNU compiler collection, but you're welcome to use any other compiler.
Unpack and install the archive as per GSL Instructions, basic steps would be:
./configure --prefix=/usr/local/gsl-1.9
make
sudo make install
last command "make install" has to be run as root
You can install GSL anywhere you like, but for the sake of simplicity I'll refer to GSL's location as /usr/local/gsl-1/9.
If not, then you need to export an environment variable LD_LIBRARY_PATH as described here: http://www.gnu.org/software/gsl/manual/html_node/Shared-Libraries.html
In short, add these lines to ~/.bashrc if you have BASH Shell:
LD_LIBRARY_PATH=/usr/local/gsl-1.9/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
Now restart the terminal, change directory to the unpacked NST source code and run "make". You may need to modify the Makefile (see next section).
To change the parameters of the simulation edit the file "header.h" in the source code and recompile. Click on "Files" tab and read the documentation of "header.h" to set the parameters correctly.
The line COMPILER should also be set to the proper compiler, but most Unix/Linux distribution come with GCC installed by default.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
AUTHOR
Max S Kaznady, [EMAIL PROTECTED]
max.kaznady@gmail.com
Summer, 2007