operator: sorted-bar-chart

    description:
        sorted-bar-chart[n] sp
        ascii bar chart of the given superposition, sorted by coefficient
        where n specifies max width of bar-chart        
        note, somewhat redundant, since we can apply coeff-sort, or ket-sort and then use standard bar-chart
        ie: 
        bar-chart[30] ket-sort sp
        bar-chart[30] coeff-sort sp
        
    examples:
        sorted-bar-chart[30] rank split |a b c d e f>
            ----------
            f : ||||||||||||||||||||||||||||||
            e : |||||||||||||||||||||||||
            d : ||||||||||||||||||||
            c : |||||||||||||||
            b : ||||||||||
            a : |||||
            ----------
        
        sorted-bar-chart[40] shuffle rank split |a b c d e f>
            ----------
            f : ||||||||||||||||||||||||||||||||||||||||
            e : |||||||||||||||||||||||||||||||||
            d : ||||||||||||||||||||||||||
            c : ||||||||||||||||||||
            b : |||||||||||||
            a : ||||||
            ----------

    see also:
        plot, bar-chart, coeff-sort, ket-sort

Home