QuESTlink
QuESTlink copied to clipboard
add PlotDensityMatrix
which renders a 3D bar plot of the state. Use overloads:
PlotDensityMatrix[ id ]to doPlotDensityMatrix @ GetQuregMatrix @ id(invoking below). Later, we can optimise this by not communicating back amplitudes under some threshold, optionally set withMinAmp -> AutomaticPlotDensityMatrix[ {{ ... }} ]to plot the real component of the matrix.- `PlotDensityMatrix[ *, Component -> Imaginary] to plot the imaginary component
PlotDensityMatrix[ *, IdealReference -> (id | {{...}} | {..}) ]to simultaneously plot a reference "ideal" density matrix (which can be assumed to have larger values than the first state). This can be a state-vector, in which case |psi><psi| is plotted.PlotDensityMatrix[ *, Options]to transmit options for the underlying graphics (e.g.BarChart3D)
added PlotDensityMatrix[] in 0f90df033b132e29314f727f61f841c36526c905, though without a MinAmp option which could significantly improve performance.
Furthermore, the performance of the implementation is generally poor using Mathematica's graphic primitives. Needs optimisation