Package to simulate hybrid superconducting qubits
Project description
HybridSuperQubits 🌀⚡
A Python framework for simulating hybrid semiconductor-superconductor quantum circuits.
Key Features ✨
-
Hybrid Circuit Simulation 🔬
Unified framework for semiconductor-superconductor systems. -
Advanced Noise Analysis 📉
- Capacitive losses (
t1_capacitive). - Inductive losses (
t1_inductive). - Flux noise (
tphi_1_over_f_flux). - Coherence Quantum Phase Slip (
tphi_CQPS).
- Capacitive losses (
-
Professional Visualization 📊
- Wavefunction plotting (
plot_wavefunction). - Matrix element analysis (
plot_matelem_vs_paramvals). - Spectrum vs parameter sweeps.
- Wavefunction plotting (
-
SC-Qubits Compatibility 🔄
API-inspired interface for users familiar with scqubits
🚀 Installation
Follow these steps to install or contribute to the HybridSuperQubits library.
For End Users
If you only plan to use HybridSuperQubits (i.e., you do not need to modify or extend its functionality), you can install it directly from PyPI:
-
(Optional) Create a Virtual Environment
Conda example:
conda create --name hsq_env python=3.10 conda activate hsq_env
Or using
venv:python3 -m venv hsq_env source hsq_env/bin/activate # macOS/Linux hsq_env/Scripts/activate # Windows
-
Install HybridSuperQubits via pip:
pip install hybridsuperqubits
To upgrade:
pip install --upgrade hybridsuperqubits
Note (macOS M1/M2/M3): If you run into issues with
SciPyon Apple Silicon, install OpenBLAS first:brew install openblas pip install scipy
For Contributors or Developers
If you want to contribute to the project or modify the code:
-
Fork and Clone the repository from GitHub (see detailed steps in
CONTRIBUTING.md). -
Create a new branch for your feature or bug fix.
-
(Optional) Set up a development environment:
conda create --name hsq_dev python=3.10 conda activate hsq_dev
-
Install in Editable Mode:
pip install -e .
This lets you test changes locally without reinstalling the package each time.
-
Run Tests (if applicable):
pytest tests/
For more details on contributing guidelines, code style, testing, and pull requests, please read our
CONTRIBUTING.md.
Basic Usage 🚀
Supported Qubit Types
- Andreev
- Gatemon
- Gatemonium
- Fermionic bosonic qubit
Initialize a hybrid qubit
from HybridSuperQubits import Andreev, Gatemon, Gatemonium, Ferbo
# Fermionic-Bosonic Qubit (Ferbo)
qubit = Ferbo(
Ec=1.2, # Charging energy [GHz]
El=0.8, # Inductive energy [GHz]
Gamma=5.0, # Coupling strength [GHz]
delta_Gamma=0.1, # Asymmetric coupling [GHz]
er=0.05, # Fermi detuning [GHz]
phase=0.3, # External phase (2 pi Φ/Φ₀)
dimension=100 # Hilbert space dimension
)
# Andreev Pair Qubit
andreev_qubit = Andreev(
EJ=15.0, # Josephson energy [GHz]
EC=0.5, # Charging energy [GHz]
delta=0.1, # Superconducting gap [GHz]
ng=0.0, # Charge offset
dimension=50
)
# Gatemonium
gatemonium = Gatemonium(
EJ=10.0, # Josephson energy [GHz]
EC=1.2, # Charging energy [GHz]
ng=0.0, # Charge offset
dimension=100
)
Documentation 📚
Full API reference and theory background available at: hybridsuperqubits.readthedocs.io
Contributing 🤝
We welcome contributions! Please see:
CONTRIBUTING.md for development guidelines
License
This project is licensed under the MIT License. However, it includes portions of code derived from scqubits, which is licensed under the BSD 3-Clause License.
For more details, please refer to the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hybridsuperqubits-0.1.4.tar.gz.
File metadata
- Download URL: hybridsuperqubits-0.1.4.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91e8d3c3b7d978eeae5831fafc62e476bd9472821ded22cacaec890037942f74
|
|
| MD5 |
772c465b3a420fe7b52b33e3353bfa13
|
|
| BLAKE2b-256 |
ea692690815601ed2376553e340814f15ece2bab2c58c02f2f6ba2e51fab9c04
|
File details
Details for the file HybridSuperQubits-0.1.4-py3-none-any.whl.
File metadata
- Download URL: HybridSuperQubits-0.1.4-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0bf4c0fc9bf145a9a030fa453e8ded892b87dfe884bead515b22c2064f16d38
|
|
| MD5 |
87a9b726eac99ee8d7fb2f738e89a39a
|
|
| BLAKE2b-256 |
687455210c77b776cee311726a977c09591e7b97938e5c6e610ee73858b19dc3
|