Construction, visualization, and transpilation of quantum circuits
Project description
QuarkCircuit
What is QuarkCircuit
QuarkCircuit is a software package that offers a clean and concise circuit visualization feature, along with a simple transpilation functionality.
Installation
pip install quarkcircuit
First experience
Plot a quantum circuit
from quark.circuit import QuantumCircuit
qc = QuantumCircuit(3)
qc.h(0)
qc.cx(0,1)
qc.cx(0,2)
qc.barrier()
qc.measure_all()
qc.draw()
Note: For better circuit display, please set your chrome or VS Code to a monospaced font, such as "Consolas". |
Transpile to basic gates
from quark.circuit import Transpile
qct = Transpile(qc, physical_qubit_list = [98,99,100]).run(optimize_level=1)
qct.draw_simply()
Tutorials
It will be added in the future.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quarkcircuit-0.1.5.tar.gz
(153.2 kB
view details)
Built Distribution
quarkcircuit-0.1.5-py3-none-any.whl
(169.4 kB
view details)
File details
Details for the file quarkcircuit-0.1.5.tar.gz
.
File metadata
- Download URL: quarkcircuit-0.1.5.tar.gz
- Upload date:
- Size: 153.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1882c0524e111cd6a313973fcce5fa8cb840d5b6c4721b39cf3b87174c55793a |
|
MD5 | 62dee0171d47d6941e1c6f6ee764f339 |
|
BLAKE2b-256 | ae6c8ba387026dbb9bfcdb0c60fa4f8299fb36c4fe714fa2a51d54ae0f1ba5e1 |
File details
Details for the file quarkcircuit-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: quarkcircuit-0.1.5-py3-none-any.whl
- Upload date:
- Size: 169.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0736a843674098eb315773b8d33f35257de30f2397d97acd0dd0b03841d2038 |
|
MD5 | 6129e9396f01a3090ac916c35105b80b |
|
BLAKE2b-256 | 36d165202af8369effe30a44893b73e1341b6b1000ced30a4e0ef8d86fe5fe4d |