Skip to main content

Construction, visualization, and transpilation of quantum circuits

Project description

QuarkCircuit

PyPI - Python Version Downloads API

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()
description
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()
description

Tutorials

It will be added in the future.

License

MIT

Project details


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

quarkcircuit-0.1.4-py3-none-any.whl (167.5 kB view details)

Uploaded Python 3

File details

Details for the file quarkcircuit-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: quarkcircuit-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 167.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for quarkcircuit-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 45bc3deb4056fd8ad9f9a0f801f708876f74b94b98efff2cc44a6d95e304e58d
MD5 f869da8eaac29a355ab9282b0dd153d0
BLAKE2b-256 dc28557cda0b878cbd32410117dae6e25f354de3aae78a685aa2cc0740173ac2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page