Skip to content

tqec/frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TQEC Frontend

In the initial design of the software tools developed by the TQEC community, we envisioned a graphical frontend to enable the users to build a QEC code or a fault-tolerant computation by ``drag-and-drop'' graphical elements on top of a qubit grid. The frontend is then able to convert the visualization into a library of templates to be used by the TQEC backend in its compilation.

The integration with the backend into a unique pipeline is currently halted.

NOTE: The early development of this frontend is connected to the beginner's guide of building a project in Javascript using React and Pixi. The step-by-step guide can still be accessed in the form of commit history from the PR #89 page.

Installation and execution

From this folder, install by typing:

npm install

Run the app in the development mode by typing:

npm start

Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes. You may also see any lint errors in the console.

Launch the test runner in the interactive watch mode.

npm test

See the section about running tests for more information.

Build the app for production to the build folder:

npm run build

It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes. Your app is ready to be deployed! See the section about deployment for more information.

Mock backend

This project provides a mock backend written in Python and located in <repo>/web. It is used to communicate the template structure to the frontend and to receive the rules to fill the template using the plaquette from the plaquette library. The plaquette library can be created by the frontend and saved to file.

TODO: Allow plaquette library to be loaded from backend too.

Learn More

Main TQEC repository.

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

About

A tentative implementation of a web-based frontend for `tqec`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •