Skip to main content

Quantum Computing Lab Programs & myqclab Package

Compact, verified Python and Qiskit implementations of 9 core quantum algorithms for lab exams.

Available both as standalone scripts/notebooks and as an installable Python package myqclab.


📦 Package Installation

Install directly in your environment:

pip install .

Or in editable/development mode:

pip install -e .

🚀 Package Usage

1. In Python / Jupyter Notebook

import myqclab

# Show the code of any algorithm in the terminal (quotes optional!)
myqclab.show(grover)
myqclab.show("grover")

# Run the algorithm and print the circuit and simulation output
myqclab.run(grover)

# List all available programs
myqclab.list()

2. From Terminal CLI

# Print code of a program
myqclab grover
myqclab show grover

# Execute program directly
myqclab run grover

# List all programs
myqclab list

📚 Available Quantum Programs

Program Name Loop Variation Algorithm Manually Configurable Input
qe qeloop Quantum Entanglement state = '00' ('00', '01', '10', '11')
tele teleloop Quantum Teleportation state = '1' ('0' or '1')
super superloop Superdense Coding msg = '01' ('00', '01', '10', '11')
de deloop Deutsch's Algorithm oracle_type = 'balanced_id' ('constant_0', etc.)
dj djloop Deutsch-Jozsa Algorithm oracle_type = 'balanced', n = 3
simon simonloop Simon's Algorithm s = '11'
bv bvloop Bernstein-Vazirani s = '1011'
grover groverloop Grover's Search target = '10' ('00', '01', '10', '11')
shor shorloop Shor's Algorithm N = 15, a = 7

Standalone Running

Run any script with Python:

python qe.py

Or open any .ipynb file in Jupyter Notebook / JupyterLab / Google Colab.

Metadata

Release files for myqclab 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for myqclab 0.1.1
File Size Uploaded Provenance
myqclab-0.1.1.tar.gz 5.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for myqclab 0.1.1
File Interpreter ABI Platform
myqclab-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / myqclab-0.1.1.tar.gz

Download URL myqclab-0.1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
52563dcd2b368638d23093cfc21d43149a16d4d3bf2a1a90fafb8167e98dc596
BLAKE2b-256 checksum
How to use checksums
2e172201986ca885f991dbba19c139bddbf5704758387b0ec0d0e08774bb97a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / myqclab-0.1.1-py3-none-any.whl

Download URL myqclab-0.1.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
760ccfaab5ef611163f1fc17e0ab4ccb51b8e7cc821c0c2158f9d5000fcc953c
BLAKE2b-256 checksum
How to use checksums
86132e737200978f318c1b4495ba0597174002ecf98be6a900fe9b7cfe3aa14a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for myqclab 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page