Qiskit GridSynth plugin
This package integrates angle decomposition with gridsynth [1] into the qiskit [2]
software stack, facilitating efficient transpilation to the Clifford+T gate set.
Installation
Install via pip:
pip install qiskit-gridsynth-plugin
Example Usage
Read a circuit from a qasm file circ.qasm, transpile to Clifford+T, and write the result to out.qasm
from qiskit import qasm2, QuantumCircuit
from qiskit_gridsynth_plugin.decompose import clifford_t_transpile
circ = QuantumCircuit.from_qasm_file('circ.qasm')
decomposed = clifford_t_transpile(circ, epsilon=1e-4)
qasm2.dump(decomposed, "out.qasm")
Include gridsynth angle decomposition as part of a qiskit compilation pipeline that also cancels out back-to-back CNOT gates
from qiskit.circuit.library.standard_gates import CXGate
from qiskit.transpiler import PassManager
from qiskit.transpiler.passes import InverseCancellation
from qiskit_gridsynth_plugin.decompose import GridSynth
circ = QuantumCircuit.from_qasm_file('circ.qasm')
pm = PassManager(InverseCancellation([CXGate()]), GridSynth(1e-4))
decomposed = pm.run(circ)
References
[1] N. J. Ross and P. Selinger, "Optimal ancilla-free Clifford+T approximation of z-rotations", arXiv:1403.2975
[2] https://www.ibm.com/quantum/qiskit
Metadata
Release files for qiskit-gridsynth-plugin 0.0.8
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 |
|---|---|---|---|---|
| qiskit_gridsynth_plugin-0.0.8.tar.gz | 4.4 MB | Without provenance | Details for qiskit_gridsynth_plugin-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qiskit_gridsynth_plugin-0.0.8-py3-none-any.whl | Python 3 | none | any | Details for qiskit_gridsynth_plugin-0.0.8-py3-none-any.whl |
Total release size: 8.7 MB
Release files / qiskit_gridsynth_plugin-0.0.8.tar.gz
| Download URL | qiskit_gridsynth_plugin-0.0.8.tar.gz |
|---|---|
| Size | 4.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
469ce3daa2e6e75652244cdba1836abeadf3323ac9b8a3bfd0a211d4bf5480e2
|
|
BLAKE2b-256 checksum How to use checksums |
78e8e0a49401e772e1f07896019c029ea70287484dafda5f785ff69caec7b611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / qiskit_gridsynth_plugin-0.0.8-py3-none-any.whl
| Download URL | qiskit_gridsynth_plugin-0.0.8-py3-none-any.whl |
|---|---|
| Size | 4.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a831afca851aa94fc05e56b6c2e9d444d70c17b16c3b6d5b5afc5bc4e7f9317
|
|
BLAKE2b-256 checksum How to use checksums |
96a8c3e328f21d6b3d465d460fa5d405a8c99b8954771b7ba9da1a1270252dbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for qiskit-gridsynth-plugin 0.0.8
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.