Skip to main content

Package to simulate hybrid superconducting qubits

Project description

HybridSuperQubits 🌀⚡

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 ⚙️

To install HybridSuperQubits, follow these steps:

Step 1: Create a Virtual Environment (Optional but Recommended)

Creating a virtual environment prevents conflicts between dependencies:

python3 -m venv hsq_env
source hsq_env/bin/activate  # macOS/Linux
hsq_env\Scripts\activate   # Windows

Step 2: Install SciPy (Before Installing HybridSuperQubits)

Since scipy can have installation issues, install it first:

pip install scipy

For macOS M1/M2/M3, if you face issues, install OpenBLAS first:

brew install openblas
pip install scipy

Step 3: Install HybridSuperQubits

Once SciPy is installed, you can install HybridSuperQubits:

pip install hybridsuperqubits

Basic Usage 🚀

Supported Qubit Types

  1. Andreev Pair Qubit (Andreev): Semiconductor nanowire-based protected qubit

  2. Gatemon (Gatemon) Gate-tunable transmon-like qubit

  3. Gatemonium (Gatemonium) Strongly charge-sensitive gatemon variant

  4. Fermionic-Bosonic Qubit (Ferbo) Hybrid light-matter qubit (shown in example below)

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


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.1.2.tar.gz (23.3 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.1.2-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hybridsuperqubits-0.1.2.tar.gz
Algorithm Hash digest
SHA256 83001c1abd9b88105e67601f26798a1bf12d7085ed672e304aa8dddd8a0ee5e6
MD5 15af717f5a80133619fdbc07fef187dc
BLAKE2b-256 66cfe1f5f1f595952ee52d1ae3ff407a1f56ac0572c5867e5736a464901a3bbd

See more details on using hashes here.

File details

Details for the file HybridSuperQubits-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for HybridSuperQubits-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 047b1f8a84b3fcbed281735500ff738186be39218d1043857149094354993787
MD5 670f601dd6a98065ed38b65bc041a135
BLAKE2b-256 034b295b99d6d0f1187f64aa586d54505f6669fadb19c56e02b89f970545baec

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