Skip to content

stjordanis/qconvert-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Q-Convert

Quantum Computing Language Converter

Install

npm -g install q-convert

Usage


Q-Convert - Quantum Language Converter

Usage:
    q-convert -i input_file -s source_format -o output_file -d destination_format [-j] [-w]
        -i, --input	Input file
        -s, --source	Source format: qasm, quil, qobj, quantum-circuit, toaster
        -o, --output	Output file
        -d, --dest	Destination format: qiskit, qasm, qobj, quil, pyquil, braket, cirq, tfq, qsharp, quest, js, quantum-circuit, toaster, svg, svg-inline
        -j, --jupyter	Output jupyter notebook (for qiskit, pyquil, braket, cirq, tfq, qsharp, and js only)
        -w, --overwrite	Overwrite output file if it already exists
        -h, --help	Print this help text

Examples

The following command will take my_circuit.qasm and output vector image of circuit diagram my_circuit.svg

q-convert -i my_circuit.qasm -s qasm -o my_circuit.svg -d svg -w

Convert from QASM to Q# (QSharp)

q-convert -i my_circuit.qasm -s qasm -o my_circuit.qs -d qsharp -w

Convert from QASM to jupyter notebook with pyQuil code inside:

q-convert -i my_circuit.qasm -s qasm -o my_circuit.ipynb -d pyquil -j -w

Online version

Online version is available at: https://quantum-circuit.com/qconvert

More languages

More input & output languages will be added soon.

License

MIT

That's it. Enjoy!

About

Quantum Programming Language Converter

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%