@willow-dls/core
    Preparing search index...

    Function loadProject

    • Load a circuit project from a file or a stream.

      Parameters

      • loader: new () => CircuitLoader

        The loader implementation to use to process the data, translating it into a circuit project.

      • data: string | Stream

        A stream or file name to pull the data from.

      • Optionallogger: CircuitLogger

        An optional logger that can be used to log information about the loading process, most likely for debugging purposes. Note that if a logger is provided, it will be propagated to the loaded project and all the circuits the project contains.

      Returns Promise<CircuitProject>

      A Circuit project which circuits can be extracted from to run in the simulation.