Skip to main content

Generate Quill quantum circuit diagrams from Qiskit circuits

Project description

Quilled

PyPI Package MIT License Tests

This package generates Quill quantum circuit diagrams from Qiskit circuits. You can install it via

pip install quilled

After the installation, you can use the package as follows:

import quilled
from qiskit import QuantumCircuit

qc = QuantumCircuit(2)

qc.h([0, 1])
qc.cz(0, 1)
qc.t([0, 1])

source_string = quilled.source(qc)

Or in order to directly draw and display in a Jupyter Notebook.

from quilled import qprint

qprint(qc)
qprint(qc, labels=False)  # Do not show qubit labels at the beginning of each wire. 
qprint(qc, bundle=False)  # Do not combine classical registers into one bundle. 
qprint(qc, scale=0.8)     # Scales the entire diagram. 
qprint(qc, qubits=[0, 1]) # Only display subset of qubits

License

This library is distributed under the MIT License.

If you want to support work like this, you can consider a one-time or monthly sponsorship.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quilled-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quilled-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file quilled-0.1.1.tar.gz.

File metadata

  • Download URL: quilled-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for quilled-0.1.1.tar.gz
Algorithm Hash digest
SHA256 112af8dd8f4141a83b006d5935ac44d316fc91ce88e05f4f33ebba63182050a1
MD5 68e36799d2bb3ec571d7ceb81f0af046
BLAKE2b-256 9745731660238f998245c243444de086cf23d434fe055914c27fda0c070b531d

See more details on using hashes here.

Provenance

The following attestation bundles were made for quilled-0.1.1.tar.gz:

Publisher: publish-python.yml on Mc-Zen/quilled

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quilled-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: quilled-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for quilled-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53b10bb473d79ec4b6da3076710bc2117e120a764e93e954283eaa846447209e
MD5 07cb2c6ba209ee81f0a860f3f0cc3437
BLAKE2b-256 f79e9e27ecfde12cae7974024fda21cece3bd988c534b6eb44a48108fba8a133

See more details on using hashes here.

Provenance

The following attestation bundles were made for quilled-0.1.1-py3-none-any.whl:

Publisher: publish-python.yml on Mc-Zen/quilled

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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