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

    Interface GatePosition

    Describes the position and properties of a single gate within a circuit layout.

    interface GatePosition {
        instructionIndex: number;
        timeStep: number;
        targets: number[];
        gateName: string;
        parameters?: number[];
        isControl?: boolean[];
    }
    Index

    Properties

    instructionIndex: number

    The index of the instruction in the original circuit's instruction list.

    timeStep: number

    The time step (column) in the circuit diagram where the gate is placed.

    targets: number[]

    An array of target indices that this gate acts upon.

    gateName: string

    The display name of the gate (e.g., "H", "CX").

    parameters?: number[]

    Optional parameters for parameterized gates (e.g., rotation angles).

    isControl?: boolean[]

    For multi-qubit gates, indicates which targets are control qubits.