GULPS
GULPS is a two-qubit gate synthesis package for arbitrary native instruction sets. Given a set of native two-qubit gates and a cost for each, it selects the least-cost sentence, an ordered list of native gates with single-qubit gates before, between, and after them, that implements a target unitary. It then constructs those single-qubit gates with a dedicated solver, can_sandwich.
pip install gulps
The native gates can be any two-qubit gates with fixed parameters: Qiskit standard gates with bound parameters, or your own matrices wrapped in UnitaryGate.
from qiskit.circuit.library import CSXGate, iSwapGate
from qiskit.quantum_info import random_unitary
from gulps.decomposition import GulpsDecomposer
decomposer = GulpsDecomposer([CSXGate(), iSwapGate().power(1 / 3)], costs=[90, 120])
circuit = decomposer(random_unitary(4, seed=0))
print(circuit.draw("text"))
A cost can be a gate duration or any other quantity that adds up along a sentence.
- Compilation: charge for single-qubit layers, run GULPS in a Qiskit pass manager, and query synthesis costs from other transpiler passes.
- Pulse duration calibration: choose which native gate durations to calibrate for your workload.
- How synthesis works: how reachable regions guide sentence selection and circuit construction.
Metadata
Release files for gulps 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gulps-0.4.0.tar.gz | 223.5 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gulps-0.4.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| gulps-0.4.0-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details |
| gulps-0.4.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
Total release size: 3.7 MB
Release files / gulps-0.4.0.tar.gz
| Download URL | gulps-0.4.0.tar.gz |
|---|---|
| Size | 223.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
495ba3c5de47f1d5bf678fbcffb09afde74a87780a39b5a4187ef7841c1178fb
|
|
BLAKE2b-256 checksum How to use checksums |
9f0ee90a3d67c75e0f6304eaa87da3690ff8790876fdf60d76c81fe8a776b3b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / gulps-0.4.0-cp310-abi3-win_amd64.whl
| Download URL | gulps-0.4.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
67966676a9bafbc6e459eff1cc52c92438af1d759ed7bac84947dcf8ed87f76b
|
|
BLAKE2b-256 checksum How to use checksums |
f649d1349ef71b458a6dfff7ba9e4ffea3df8863ddd812dfaa2e5df9d54a4c5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / gulps-0.4.0-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | gulps-0.4.0-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
38e3552b535b9989880fb3c8f5785be2a5ecd2ffe1382f9c8658a588f79418c8
|
|
BLAKE2b-256 checksum How to use checksums |
8cf34150dd43d8880c4f06a4dfa6f3ebcfb6db895f13cfda5d9d5dde09a6b05b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / gulps-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | gulps-0.4.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 845.9 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
71560f4c67d42d3b54af8938929b34be88954aee7526d988ab11012f982dd0d0
|
|
BLAKE2b-256 checksum How to use checksums |
0296be836881cabf92d992c3e6a80b4522c6f766d0d610cb75416f7456c9a1bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|