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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file quarkcircuit-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: quarkcircuit-0.1.2-py3-none-any.whl
- Upload date:
- Size: 22.3 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 | 87021e338c893692299816a6ea78cca04c61739021ea11fb0b425a1ecc9b65fe |
|
MD5 | 0b65ecfa0af4ce0ef9c76a3a69029808 |
|
BLAKE2b-256 | 5720444d4a98a9c6a083ce27830c47786214bdbbbc5f745d1f7305e2dff0168f |