Skip to main content

Laser physics / simulation utilities

Project description

LaserPy_Quantum

LaserPy_Quantum provides an intuitive interface for simulating complex laser interactions, current drivers, and interferometer setups, with plans to offload performance-critical components to Rust for high-speed numerical computations. A high-level, open-source Python library designed for the theoretical simulation of laser systems in quantum communication and cryptographic protocols.

🚀 Features

  • High-Level API for constructing laser-based quantum system simulations.
  • Support for arbitrary waveform generation (AWG) and current drivers.
  • Simulation of master–slave laser - configurations with injection locking.
  • Built-in support for asymmetric Mach–Zehnder interferometers (AMZI) and photon detectors.
  • Clock-driven simulation engine for precise time-step control.
  • Extensible architecture for future modules and Rust acceleration.

📦 Installation

  • LaserPy_Quantum is now on PyPI.
pip install LaserPy-Quantum
  • Also, LaserPy_Quantum is under active development and welcomes opensource developers. Clone the repository locally:
git clone https://github.com/Mathwizard1/LaserPy_Quantum.git
cd LaserPy_Quantum
pip install -e .

Ensure you’re using Python 3.9+.

📝 Example Usage

Below is an example of using LaserPy_Quantum component and connection system with simulator:

from LaserPy_Quantum import Clock, PhysicalComponent
from LaserPy_Quantum import Connection, Simulator

from LaserPy_Quantum import display_class_instances_data

simulator_clock = Clock(dt=0.01)
simulator_clock.set(2)

simulator = Simulator(simulator_clock)

physical_device1 = PhysicalComponent()
physical_device2 = PhysicalComponent()

simulator.set((
    Connection(simulator_clock, physical_device1),
    Connection(physical_device1, physical_device2)
))

simulator.reset(True)
simulator.simulate()
time_data = simulator.get_data()

physical_device1.display_data(time_data)
physical_device2.display_data(time_data)

display_class_instances_data((physical_device1, physical_device2), time_data)

🧠 Use Case: Laser simulations

LaserPy_Quantum’s current use case is simulating quantum key distribution (QKD) protocols using master–slave lasers with injection locking and interferometer-based detection.
It allows researchers and engineers to prototype and test theoretical setups before implementing them in hardware.

🔧 Planned Features

  • Rust-based backend for high-performance simulation.
  • Expanded library of optical components (modulators, detectors, etc.).

TODO list

  1. DPS QKD simulation verify

  2. Rust based critical parts off-loading

  3. Component behaviour refinement

  4. More components

  • TODO multiport interferometer
  • TODO PhotonDetector behaviour refinement
  1. GUI

🤝 Contributing

We welcome contributions!
Feel free to fork the repo, open issues, or submit pull requests.

📜 License

LaserPy_Quantum is distributed under a dual-license model to support both the open-source community and commercial applications.

  • Open Source: For academic, personal, and open-source projects, LaserPy_Quantum is licensed under the GNU General Public License v3.0 (GPLv3).

  • Commercial: For use in proprietary or commercial software where the terms of GPLv3 are not suitable, a separate commercial license is available. Please contact the maintainer to discuss licensing options.

📬 Contact

Maintained by Anshurup Gupta.
For questions or collaborations, open an issue or email.

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

laserpy_quantum-0.0.7.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

laserpy_quantum-0.0.7-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file laserpy_quantum-0.0.7.tar.gz.

File metadata

  • Download URL: laserpy_quantum-0.0.7.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for laserpy_quantum-0.0.7.tar.gz
Algorithm Hash digest
SHA256 1a356f81fe9f66ad26d60bc44ed4d57dc51b8e0b86e4a24f32ef3fff1a5cc1a3
MD5 96bd4e43de3d75b7ca9a1ae48d222cb5
BLAKE2b-256 1deea1fc775bb6fb46dc9d5f365d0cbd57fd8934809deb914982ebc97da2ed4d

See more details on using hashes here.

File details

Details for the file laserpy_quantum-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for laserpy_quantum-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 649bec505a8ea596765e9ecc2443852ae8890c5b42aac556d9597e8a7406c26b
MD5 ced251a528906c0a44c664a91a9642f3
BLAKE2b-256 6b9463972a716e38728b092c17652d612013f5c09007f48440d1695a780a47fe

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