Spin Qudit Tomography
July 28, 2021 ยท View on GitHub
This repository contains some codes I wrote for this paper on spin qudit tomography. Disclaimer: I (Michael A. Perlin) am merely a physicist, with little training in "proper" code design and maintenance. I am happy to make these codes publicly available, but I do not have the time to clean them up or make an API. The codes here should therefore be considered "research grade", and may require manual inspection / cleanup for custom use. If you do make use of these codes, I only ask that cite my paper accordingly.
All codes here are written in python3, and external dependencies include the wigner and py3nj libraries.
Contents:
qudit_tomo_methods.pyis the main "methods" file for this project.compute_tomo_times.pycomputes the classical error scale, quantum error scale, or reconstruction error for various spin qudit dimensions. Results are printed to a data file, together with the mean computation time for each qudit dimension.plot_tomo_times.pyplots the data generated bycompute_tomo_times.pyto generate Figure 2 here.compute_axis_num_data.pygenerates random measurement axes and computes their associated quantum error scale. Results are printed to a data file, together with the mean computation time for number of axes.plot_axis_num_data.pyplots some of the data generated bycompute_axis_num_data.pyto generate Figure 3 here.compute_opt_angles.pycomputes the quantum error scale associated with different choices of the polar angle that must be chosen to carry out the tomography protocol in this paper.plot_opt_angles.pyplots some of the results fromcompupe_opt_angles.pyto generate Figures 4 and 5 here.compute_opt_axes.pyfirst generates random measurement axes, then takes the best found measurment axes and tries to further optimize them by minimizing their associated quantum error scale. This is the script that generates the data in./data/best_axes_d*.txt.