Skip to main content

Package to simulate hybrid superconducting qubits

Project description

HybridSuperQubits 🌀⚡

DOI PyPI Version License Documentation Status

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).
  • Professional Visualization 📊

    • Wavefunction plotting (plot_wavefunction).
    • Matrix element analysis (plot_matelem_vs_paramvals).
    • Spectrum vs parameter sweeps.
  • SC-Qubits Compatibility 🔄
    API-inspired interface for users familiar with scqubits


🚀 Installation

Recommended Installation (Apple Silicon M1/M2/M3)

For optimal performance on Apple Silicon Macs, install scientific dependencies via conda-forge:

# Option 1: Use the provided environment file
conda env create -f environment.yml
conda activate hybridsuperqubits

# Option 2: Manual conda installation
conda create -n hybridsuperqubits python>=3.9
conda activate hybridsuperqubits
conda install -c conda-forge numpy scipy matplotlib qutip scqubits
pip install -e . --no-deps

📖 Detailed Apple Silicon guide: INSTALL_APPLE_SILICON.md

Quick Installation (All Platforms)

pip install HybridSuperQubits[full]

⚠️ Note: On Apple Silicon, this may install unoptimized versions of scientific libraries.

Minimal Installation

pip install HybridSuperQubits
# Then manually install: numpy, scipy, matplotlib, qutip, scqubits

Development Installation

git clone https://github.com/joanjcaceres/HybridSuperQubits.git
cd HybridSuperQubits
pip install -e .[full]

Basic Usage 🚀

Supported Qubit Types

  1. Andreev
  2. Gatemon
  3. Gatemonium
  4. 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.

📖 Citation

If you use this software in your research, please cite it using the following BibTeX entry

@software{joan_j_caceres_2025_15315785,
  author       = {Joan J. Cáceres},
  title        = {joanjcaceres/HybridSuperQubits},
  month        = may,
  year         = 2025,
  publisher    = {Zenodo},
  version      = {v0.8.2},
  doi          = {10.5281/zenodo.15315785},
  url          = {https://doi.org/10.5281/zenodo.15315785},
}

or using the Citation tool at HybridSuperQubits' Zenodo

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

hybridsuperqubits-0.10.1.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hybridsuperqubits-0.10.1-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

Details for the file hybridsuperqubits-0.10.1.tar.gz.

File metadata

  • Download URL: hybridsuperqubits-0.10.1.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hybridsuperqubits-0.10.1.tar.gz
Algorithm Hash digest
SHA256 a83a1e96baabc0de54353436a5d2c4ab40bf5a7ccbf8cf327feb3058ac21bef0
MD5 615bd6c75216136b346c8f6ec57f6eac
BLAKE2b-256 cd45be061abdd2e7dbf4b9774330308f5de774687ad3acb4c834f59fe923e212

See more details on using hashes here.

File details

Details for the file hybridsuperqubits-0.10.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hybridsuperqubits-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e32a85c997f384b561bb5c8ef531d8366fd38bacb4622e0f6acffea203c5dba5
MD5 752601eddb8131c99612b16c3d9a8b4d
BLAKE2b-256 e0d4c6f0c92f32d166aa0dec389bd4eab0b90b02696ea11198f36fa9bcf5952a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page