qiskitcode
Quantum Lab Practicals — theory + Qiskit code, printed straight on the terminal.
Install
From this folder:
pip install .
Or install the built wheel from dist/:
pip install dist/qiskitcode-0.1.0-py3-none-any.whl
(No Qiskit install needed just to print the practicals — Qiskit is only needed if you actually run the printed code.)
Use
import qiskitcode
qiskitcode.p1() # Practical 1: Hadamard / superposition
qiskitcode.p2() # Practical 2: Measure + histogram
qiskitcode.p3() # Practical 3: Bell state
qiskitcode.p4() # Practical 4: CNOT + SWAP
qiskitcode.p5() # Practical 5: Deutsch-Jozsa
qiskitcode.p6() # Practical 6: Grover's search
qiskitcode.all() # all six, one after another
qiskitcode.show(3) # any practical by number
qiskitcode.list() # list all titles
The class form also works:
from qiskitcode import Qiskitcode
Qiskitcode.p1()
Qiskitcode.all()
Note: qiskitcode.1() is not valid Python — an attribute name cannot start
with a digit — so the numbered practicals are p1() … p6().
Contents
- Create a Single-Qubit Circuit Applying the Hadamard Gate
- Measure the Qubit and Plot the Histogram of Results
- Build a Circuit to Generate a Bell State
- Implement a Multi-Qubit Circuit with CNOT and SWAP Gates
- Implement and Run the Deutsch-Jozsa Algorithm
- Implement and Run Grover's Algorithm to Search for a Marked State
Metadata
Release files for qiskitcode 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qiskitcode-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for qiskitcode-0.1.0-py3-none-any.whl |
Release files / qiskitcode-0.1.0-py3-none-any.whl
| Download URL | qiskitcode-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d3c12506595882e65c1346f3ddbaf75eb532031ba9377d0539d44db981f8e17
|
|
BLAKE2b-256 checksum How to use checksums |
ae61ddf65d6abc3c3c4decf6e0bcd161460df38a5c776eaa053675ce1a5a6cb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for qiskitcode 0.1.0
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.