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

    Interface WireConnection

    Defines a connection between two points on the circuit diagram, typically for multi-qubit gates.

    interface WireConnection {
        from: { timeStep: number; qubit: number };
        to: { timeStep: number; qubit: number };
        type: "wire" | "control" | "target";
    }
    Index

    Properties

    Properties

    from: { timeStep: number; qubit: number }

    The starting coordinate of the connection.

    to: { timeStep: number; qubit: number }

    The ending coordinate of the connection.

    type: "wire" | "control" | "target"

    The type of connection.