API reference¶
Classification¶
|
Quantum classifier |
|
Quantum-enhanced SVM classifier |
|
Variational quantum classifier |
|
Quantum-enhanced MDM classifier |
|
A Quantum wrapper around the NCH algorithm. |
|
Classification by Nearest Convex Hull (NCH). |
|
QAOA classifier with batch training using angle encoding. |
|
Quantum state classifier using the Pretty Good Measurement (PGM). |
|
Quantum-enhanced MDM classifier |
Autoencoders¶
|
Quantum denoising |
Pipelines¶
|
Base class for quantum classifiers with Riemannian pipeline. |
Default pipeline with Riemannian geometry and a quantum classifier. |
|
|
MDM with Riemannian pipeline adapted for cpm metrics. |
|
Voting classifier with two QuantumMDMWithRiemannianPipeline |
|
An alias for FeatureUnion + Classifier |
Ensemble¶
|
Judge classifier |
Optimization¶
Optimization contains quantum and classical optimizers and supporting mathematical utilities.
Distance¶
|
Log-Euclidean distance to a convex hull of SPD matrices. |
|
Weights for Log-Euclidean distance to a convex hull of SPD matrices. |
Mean¶
|
Euclidean mean with Constraint Programming Model. |
|
Log-Euclidean mean with Constraint Programming Model. |
Docplex¶
|
Docplex square continuous matrix |
|
Docplex square integer matrix |
|
Docplex square binary matrix |
Wrapper for Qiskit optimizer. |
|
|
Wrapper for the classical Cobyla optimizer. |
|
Wrapper for the quantum optimizer QAOA. |
|
QAOA with continuous variables encoded in state vector angles. |
|
QAOA with continuous variables. |
Optimizers¶
Anderson acceleration optimizer for variational quantum circuits. |
|
Adam optimizer with manifold-aware retraction for VQC parameters, inspired by [Rf2ef09536214-1]. |
Utils functions¶
Utils functions are low level functions for the classification and pipelines module.
Utils¶
|
Indicates if the function is a mean or a distance introduced in this library. |
Factory function to create optimizer based on parameters. |
Hyper-parameters generation¶
|
Return a callable that generates a XFeatureMap. |
|
Return a callable that generates a ZFeatureMap. |
|
Return a callable that generates a ZZFeatureMap. |
|
Return a callable that generate a TwoLocal circuit. |
|
Return an instance of SPSA. |
|
Return the default values of the calibrate method of an SPSA instance. |
Return the default mixing operator with QAOA. |
|
Return the XY mixer. |
|
Return a mixing operator with XZ gates. |
|
|
Return the default mixing operator with QAOA. |
Return a mixer with rotation gates and circular entanglement. |
|
Return an identity mixer (no operation). |
Preprocessing¶
Apply one robust scaler by feature. |
|
Vectorization. |
|
|
Transform vector to matrices |
Filtering¶
|
No dimensional reduction. |
|
Naive dimensional reduction. |
|
Select channel in epochs. |
Math¶
|
Return the positions for which at least one of the array as a different value than the others. |
|
Plot histogram of bi-class predictions. |
|
Check if operator is pauli identity |
Datasets¶
|
Return sample data from the MNE dataset [R704a40a78b24-1]. |
|
Return a linearly separable dataset. |
|
Return a Qiskit ad-hoc dataset. |
|
Return the feature dimension of a dataset. |
|
A dataset with mock data. |
Quantum Provider¶
|
Symbolic Statevector kernel |
Return an IBM quantum provider. |
|
|
Returns all real remote quantum backends. |
Return a quantum simulator. |
|
|
Get a quantum kernel |
Transfer Learning¶
|
Meta-estimator bridging MOABB's evaluation interface with pyriemann TL pipelines. |
|
CrossSubjectEvaluation with group and target-domain forwarding. |
Visualization¶
Helpers to visualize distances, manifold and even “artistic” representation.
Art¶
|
Artistic representation of vqc training. |
Manifold¶
|
Plot the convex hull of a set of points. |
|
Plot spd matrices in 3d (cartesian coordinate system). |