Giter Site home page Giter Site logo

psg-mit / spire-artifact Goto Github PK

View Code? Open in Web Editor NEW
3.0 6.0 1.0 5.09 MB

This is the artifact for the paper "The T-Complexity Costs of Error Correction for Control Flow in Quantum Computation" by Charles Yuan and Michael Carbin. It contains the sources for the Spire compiler, the benchmark programs and circuits used in the paper, and the evaluation package.

Dockerfile 1.87% Python 2.02% Shell 16.55% C++ 1.90% Rust 0.42% OCaml 72.41% Makefile 3.57% Standard ML 1.25%

spire-artifact's Introduction

Spire Artifact

This is the artifact for the paper "The T-Complexity Costs of Error Correction for Control Flow in Quantum Computation" by Charles Yuan and Michael Carbin. It contains the sources for the Spire compiler, the benchmark programs and circuits used in the paper, and the evaluation package.

The artifact requires Docker Desktop to be installed. To build and run, first download circuits.tar.xz and reference_outputs.tar.xz from the Releases on the right and copy these two archives into this repository. Then, run

docker build -t spire-artifact .
docker run --name spire -it spire-artifact /bin/bash

Then, inside the Docker shell, you can find the sources in tower-src/, the benchmark programs in tower-src/tests/ and length_simplified.twr, and their corresponding circuits in circuits/.

The evaluation package consists of the scripts in the main directory. The reference_output/ directory contains the pre-generated outputs of these scripts, and can be regenerated by running each script whose name starts with run.

To run all of the fast benchmarks (takes ~1hr), run

./run_fast.sh

To run all of the benchmarks from the paper (takes several days), run

./run.sh

Note that timing results will vary depending on the machine used. Also, certain optimizers, in particular Qiskit, Quartz, and QUESO, sometimes produce nondeterministic results, so the outputs may not match exactly.

spire-artifact's People

Contributors

charlesyuan314 avatar

Stargazers

 avatar  avatar Victory Omole avatar

Watchers

Yi Ding avatar  avatar Alex Renda avatar Cambridge Yang avatar Jesse Michel avatar  avatar

Forkers

naerabati

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.