abraxas
A tiny library to transpile quantum circuits. The goal is to speed up the time it takes to convert simple circuits across languages fast. Anything beyond a certain complexity should be written in the respective languages directly.
Qiskit • CudaQ • Pennylane • Cirq • TKet • Quil • Braket
Install
Qiskit has also been marked as a dependency since about a third of the functions use it anyway.
pip install abrax
Examples
toPennylane
from qiskit import QuantumCircuit, Parameter
from abrax import toPenny, toQasm
import pennylane as qml
qc = QuantumCircuit(3)
p = Parameter('x')
qc.h([0, 1, 2])
qc.cx(0, 2)
qc.rx(0, 0)
qc.cx(1, 2)
qc.ry(p, 2)
qasm = toQasm(qc)
dev = qml.device("default.qubit", wires=2)
circuit = toPenny(qasm, dev) # pennylane needs 'dev'
# print(qml.draw(circuit)())
# 0: ──H─╭X──RX(0.00)───────────────┤ Probs
# 1: ──H─│────────────╭X────────────┤ Probs
# 2: ──H─╰●──X────────╰●──RY(x)─────┤ Probs
Supported conversions:
graph LR
subgraph Circuit
direction LR
IR[Pseudo-QASM]
IR2[QASM]
end
A0[Qiskit] --> Circuit
B0[Pennylane] --> Circuit
C0[Cirq] --> Circuit
D0[TKet] --> Circuit
E0[Quil] --> Circuit
F0["CudaQ (half)"] --> Circuit
G0[Braket] --> Circuit
Circuit --> A1[Qiskit]
Circuit --> B1[Pennylane]
Circuit --> C1[Cirq]
Circuit --> D1[TKet]
Circuit --> E1[Quil]
Circuit --> F1[CudaQ]
Circuit --> G1[Braket]
Supported Frameworks
Metadata
Release files for abrax 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| abrax-1.2.1.tar.gz | 8.8 kB | Without provenance | Details for abrax-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| abrax-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for abrax-1.2.1-py3-none-any.whl |
Total release size: 19.6 kB
Release files / abrax-1.2.1.tar.gz
| Download URL | abrax-1.2.1.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06081728d4d7fd981ed3b4f124d5e2c5b55e4cf754f8d6b74f9eefe6ac7b3ce9
|
|
BLAKE2b-256 checksum How to use checksums |
6461c5d367f391dbb945a35a47eb286604370081f9318789e2b7f6df7a49e6df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / abrax-1.2.1-py3-none-any.whl
| Download URL | abrax-1.2.1-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c08ead12a638acd6a1d965c14ef62ee266e7bd5a15623d596a97ee36bf00dfd8
|
|
BLAKE2b-256 checksum How to use checksums |
79f53d930114c98a3ff2006d3a840ec5954fa1ef126e30f77a4c1ee16da58703
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for abrax 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.