Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/mapmeld/quantum-circuit-viz
- Owner: mapmeld
- License: apache-2.0
- Created: 2018-12-19T16:02:55.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-04T14:17:04.000Z (4 months ago)
- Last Synced: 2024-11-07T15:06:06.230Z (about 2 months ago)
- Topics: quantum-circuit, quantum-circuits, quantum-computing
- Language: JavaScript
- Size: 29.3 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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)