Skip to main content

A Quantum Circuit DSL

Project description

abraxas

A tiny DSL to compile to qiskit circuits. The goal is to speed up the time it takes to write small stupid circuits. Anything beyond a certain complexity should be written in qiskit directly.

Example

from abrax import A

# Create a circuit
circuit = A("""
- H CX(4) RX(10)
- H -    -
- H -    CX(4)
- H X    RY(55)
- H -    -
""")

# Should be equivalent to
from qiskit import QuantumCircuit

qc = QuantumCircuit(5)
qc.h([0, 1, 2, 3, 4])
qc.cx(0, 4)
qc.x(3)
qc.rx(10, 0)
qc.cx(2, 4)
qc.ry(55, 3)
qc.measure_all()

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

abrax-0.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

abrax-0.0.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file abrax-0.0.1.tar.gz.

File metadata

  • Download URL: abrax-0.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for abrax-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4b2b30b0a994412e59cc243d2308538cbb2347968409dead1e1fc89bb11f0f44
MD5 ae074fdaf4fab0db295ec0cfcb8eafba
BLAKE2b-256 3c93203cb3ccde1ef81c7b676b3b6d3489ed6db11a72265914fd02b21d62d7f3

See more details on using hashes here.

File details

Details for the file abrax-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: abrax-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for abrax-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22c8e1da26546b47196b439be48b1f7ef4dddf0fb7f7b48a6c4fb224e761a0ee
MD5 42b46d0156de14b9b543840e944522f6
BLAKE2b-256 bd26d9b5606878c9717ce7088ac50fc03748e5be56fb448527aa1b77df7930d1

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