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

    Interface CircuitLayout

    Represents the complete layout of a quantum circuit for visualization purposes.

    interface CircuitLayout {
        numQubits: number;
        numTimeSteps: number;
        gates: GatePosition[];
        connections: WireConnection[];
    }
    Index

    Properties

    numQubits: number

    The total number of qubits in the circuit.

    numTimeSteps: number

    The total number of time steps (columns) required to draw the circuit.

    gates: GatePosition[]

    An array of all gates with their position information.

    connections: WireConnection[]

    An array of connections between gates (e.g., for CNOT).