0.3.1 • Published 1 year ago

@lattice-surgery/liblsqecc v0.3.1

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
1 year ago

NPM distribution of the the Lattice Surgery Compiler's C++ edition

arXiv Unitary Fund

Lattice Surgery Compiler-fin-01

This package allows calling the Lattice Surgery Compiler's C++ edition, aka Liblsqecc from Javascript.

Background on liblsqecc

The Liblsqecc package is part of the Lattice Surgery compiler project. It's a tool for quantum error correction, that translates an arbitrary quantum circuit into surface code operations based on lattice surgery. These instruction are expressed as a 3D array in JSON format. A viewer is available here.

npm.io

Read more about the project in its paper and on https://latticesurgery.com, or contribute on github.

How to use this package

This package provides an interface to the Liblsqecc's executable target lsqecc_slicer though the Slicer class. The type interface describes which options are available.

import { Slicer } from "@lattice-surgery/liblsqecc";

const slicer = await Slicer.load();

const result = slicer.run(YOUR_CIRCUIT_AS_STRING, 'qasm');

For an overview of what the options do, please consult executable's readme.

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago