Source code for Figure 2 in the paper Physical Implementability for Reversible Magic State Manipulation.
Magic states are essential for achieving universal quantum computations and they can be characterized in the framework of a resource theory. The present study introduces a definition of physical implementability and explores its consequences for specific operations of state manipulations, thereby helping to understand their cost.
Figure 2 shows the numerical experiments for the physical implementability of magic state transformations among states
The main file is the MATLAB script code/figure2data.m
that generates the plot data data.mat
for Figure 2. In particular, the script runs SDPs to compute the physical implementability among six magic state transformations under different allowable transformation error. The derivation of the SDPs can be found in the Supplementary Note 3.
We run this file using MATLAB 2023a or later on Windows 11. No specific hardware is required.
Additional Packages include CVX 2.1 and QETLAB 0.9 are additional required. We have included them in the packages
folder (CVX package is for Windows only). We recommend to save the path of installed packages globally. The detailed installation instructions for these two packages are available on their respective websites.