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

    Interface SVGGate

    Defines the properties of a single gate for SVG rendering.

    interface SVGGate {
        x: number;
        y: number;
        width: number;
        height: number;
        label: string;
        qubits: number[];
        type: string;
        isMultiQubit: boolean;
    }
    Index

    Properties

    x: number

    The x-coordinate of the top-left corner of the gate.

    y: number

    The y-coordinate of the top-left corner of the gate.

    width: number

    The width of the gate box.

    height: number

    The height of the gate box.

    label: string

    The text label to display inside the gate (e.g., "H").

    qubits: number[]

    The indices of the qubits this gate acts on.

    type: string

    The type of the gate (e.g., "Hadamard").

    isMultiQubit: boolean

    True if the gate acts on more than one qubit.