QuCat Logo

JSCircuit

Start designing quantum circuits in your browser right away with jscircuit for your simulations

GitHub App Docs


JSCircuit is a lightweight, web-based circuit editor designed to generate netlists for QuCat simulations. It runs entirely in the browser, offering a modern alternative to desktop-based editors.

Get started right away with JSCircuit

Why JSCircuit?

The project was built to solve two key challenges in the quantum circuit simulation workflow:

  1. Accessibility & Portability: Many researchers and students work in Jupyter Notebooks hosted on JupyterHubs or HPC clusters. JSCircuit provides a zero-installation editor that can be embedded directly into these environments, or run on any device with a modern browser.

  2. Extensibility: Built with a modular Hexagonal Architecture, JSCircuit makes it easy for developers to add custom circuit elements, create new visual renderers, and implement custom commands.

Key Features

  • Zero Installation: Runs instantly in any modern web browser.
  • QuCat Compatible: Generates netlist files ready for QuCat simulations.
  • Embeddable: Designed to work within Jupyter Notebooks and web applications.
  • Dependency-Free: Built with native ES6 JavaScript, requiring no heavy frameworks.
  • Extensible: Professional architecture allowing easy addition of new components.

For Developers

Local Installation

To run the project locally for development:

  1. Clone the repository:

    git clone https://github.com/qucat/jscircuit.git
    cd jscircuit
    
  2. Install dependencies:

    npm install
    
  3. Build and Serve:

    npm run serve
    

    This will bundle the application and start a local server at http://127.0.0.1:8080.

Documentation

Build the documentation locally

npm run docs:serve

Acknowledgments

This project builds upon the original QuCat GUI developed by Mario Gely, which provided the foundational concepts for circuit visualization and interaction as a reference to develop this application.

We acknowledge the support of the TU Delft Digital Competence Center in advancing this project.

Licensed under the MIT License.

Technische Universiteit Delft hereby disclaims all copyright interest in the program "JSCircuit" written by the Author(s).

— Prof. Paulien Herder, Dean of the faculty of Applied Sciences at TU Delft