Skip to main content

Bilinear Quantum

bilinear-quantum provides a task-oriented API for Bilinear Quantum models. The interface abstracts backend selection and numerical execution behind consistent task constructors.

The package defines a 34-task interface. Provider and hardware integrations are optional components and may evolve independently.

Version 4.1.0 wires all 34 constructors to the BQDL v5 two-register neural simulator core. The task name selects only the loss/readout contract; angle state preparation, cross-register entangling relation, and quantum observable readout are shared internally. Provider-specific classes are not part of the user-facing API.

Install

python -m pip install --upgrade bilinear-quantum

Quick start

import bilinear_quantum as blq

model = blq.classify(x_train, y_train)
prediction = model.predict(x_test)
report = model.evaluate(x_test, y_test)
print(report.summary())

Every task constructor accepts data, an optional target, and optional keyword configuration. A fitted model provides predict, evaluate, summary, resources, and save.

APIs

API Typical use
classify Single-label classification
regress Continuous-value regression
multilabel Multiple labels per sample
cluster Unsupervised clustering
embed Representation learning
rank Ranking and ordered scoring
retrieve Similarity retrieval
recommend Recommendation scoring
detect_objects Object detection
segment_semantic Semantic segmentation
segment_instances Instance segmentation
estimate_pose Pose and keypoint estimation
track_objects Object tracking
denoise Noise reduction
super_resolve Resolution enhancement
inpaint Missing-region reconstruction
forecast Future-value forecasting
impute Missing-value imputation
detect_anomalies Anomaly detection
detect_events Event detection
sequence_label Sequence labelling
align_sequences Sequence alignment
node_classify Graph node classification
link_predict Graph link prediction
graph_predict Graph prediction
graph_match Graph matching
fuse_modalities Multimodal fusion
generate Generation tasks
density_estimate Density estimation
learn_dynamics Dynamical-system learning
discover_operator Operator discovery
solve_pde PDE solution/surrogate tasks
optimize Optimization tasks
learn_quantum_process Quantum-process learning

For unsupervised tasks, omit the target:

clusters = blq.cluster(x_train)
cluster_ids = clusters.predict(x_test)

Task-specific helpers are available where meaningful:

generator = blq.generate(x_train)
samples = generator.sample(16)

optimizer = blq.optimize(candidates, objective_values)
best = optimizer.optimize()

Backend selection

with blq.runtime.use("aer", shots=128):
    model = blq.classify(x_train, y_train)

Optional provider dependencies:

python -m pip install "bilinear-quantum[sim]"  # Qiskit/Aer
python -m pip install "bilinear-quantum[ibm]"  # IBM Runtime
python -m pip install "bilinear-quantum[qi]"   # Quantum Inspire

The v5 wheel currently executes on CPU or CUDA state-vector simulation through PyTorch. Hardware execution is not validated by this release; provider extras remain an integration boundary and do not change the task-level API.

Colab

!python -m pip install -U bilinear-quantum
import bilinear_quantum as blq
print(blq.__version__)

Use a fresh runtime and identical preprocessing when comparing baselines.

Scope and reproducibility

Algorithmic details, benchmark protocols, and validation artifacts should be identified by the exact package version and corresponding release record when results are reported. See LICENSE for distribution terms; third-party dependencies retain their own licenses.

Metadata

Release files for bilinear-quantum 4.1.0

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

Built distribution (wheel)

Table of built distributions (wheels) for bilinear-quantum 4.1.0
File Interpreter ABI Platform Actions
bilinear_quantum-4.1.0-py3-none-any.whl Python 3 none any Details for bilinear_quantum-4.1.0-py3-none-any.whl

Release files / bilinear_quantum-4.1.0-py3-none-any.whl

Download URL bilinear_quantum-4.1.0-py3-none-any.whl
Size 33.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc36d69542c40226d58099e8b997243cf13a9aaae45f474af7db3abe566a2849
BLAKE2b-256 checksum
How to use checksums
61494a426fc7b76d469ed0fc712e70d46bc4ff9693193d0991d2e7ebe5721ac5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

Security for bilinear-quantum 4.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.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for bilinear_quantum-4.1.0-py3-none-any.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.

Transparency log

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.

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