Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mapmeld/quantum-circuit-viz

JS visualization for Quantum Quail circuits (based on QISKit Python)
https://github.com/mapmeld/quantum-circuit-viz

quantum-circuit quantum-circuits quantum-computing

Last synced: about 1 month ago
JSON representation

JS visualization for Quantum Quail circuits (based on QISKit Python)

Awesome Lists containing this project

README

        

# Quantum Circuit Viz (JS)

JS port of DrawElement quantum-circuit-drawer in QISKit-Terra

```javascript
let element = elements.MeasureFrom().toString(),
expected = ["┌─┐",
"┤M├",
"└╥┘"];
assert.deepEqual(expected, element);
```

Made compatible with Quantum-Peep

```javascript
let program = new Program();
program.add(Gates.X(0));

let output = textViz(program);
assert.equal(output,[' ┌───┐',
'q_0: |0>┤ X ├',
' └───┘',
' c_0: 0 ═════',
' '].join('\n'));
```

## License

Apache-2.0 (same as QISKit-Terra)