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

    Interface PhaseVisualization

    Represents data for visualizing the phase of each component of a quantum state.

    interface PhaseVisualization {
        states: string[];
        magnitudes: number[];
        phases: number[];
        complexPlane: { real: number; imaginary: number }[];
    }
    Index

    Properties

    states: string[]

    An array of basis state labels.

    magnitudes: number[]

    The magnitude of the amplitude for each basis state.

    phases: number[]

    The phase (in radians) of the amplitude for each basis state.

    complexPlane: { real: number; imaginary: number }[]

    The coordinates of each amplitude on the complex plane.