q5m.js - Quantum Computing Library - v0.1.1
    Preparing search index...

    Interface ProbabilityHistogram

    Represents the data required to render a probability histogram.

    interface ProbabilityHistogram {
        labels: string[];
        probabilities: number[];
        colors?: string[];
        maxProbability: number;
    }
    Index

    Properties

    labels: string[]

    An array of basis state labels for the x-axis.

    probabilities: number[]

    An array of probability values for the y-axis.

    colors?: string[]

    Optional array of color codes for the histogram bars.

    maxProbability: number

    The maximum probability value, useful for scaling.