This Mathematica file (in .nb format) is the code we used in the Section "Adaptive Technique" of our work entitled "Bayesian quantum phase estimation with fixed photon states". In this file we start with a flat prior PDF, and for each subsequent step we use as prior PDF the posterior probability of the previous step, while for each step we update the optimal state and optimal measurement. We perform the analysis for up to five steps for all possible measurement outcomes, while under the assumption that the minimum mean square error remains the same for all possible measurement outcomes per step, we perform ten steps. One can run the algorithm for more steps.
For inquiries regarding the contents of this dataset, please contact the Corresponding Author listed in the README.txt file. Administrative inquiries (e.g., removal requests, trouble downloading, etc.) can be directed to data-management@arizona.edu