pyriemann_qiskit.utils.quantum_provider.SymbFidelityStatevectorKernel

class pyriemann_qiskit.utils.quantum_provider.SymbFidelityStatevectorKernel(feature_map, gen_feature_map, n_jobs=1)[source]

Symbolic Statevector kernel

An implementation of the quantum kernel for classically simulated state vectors [1] using qiskit-symb for symbolic representation of statevectors [2].

Here, the kernel function is defined as the overlap of two simulated quantum statevectors produced by a parametrized quantum circuit (called feature map) [1].

Notes

Added in version 0.4.0.

Parameters:
  • feature_map (QuantumCircuit | FeatureMap) – An instance of a feature map.

  • gen_feature_map (Callable[[int, str], QuantumCircuit | FeatureMap], default=Callable[int, ZZFeatureMap]) – Function generating a feature map to encode data into a quantum state.

  • n_jobs (int) – The number of job for fidelity evaluation. If null or negative, the number of jobs is set to 1 If set to 1, evaluation will run on the main thread.

References

__init__(feature_map, gen_feature_map, n_jobs=1)[source]

Methods

__init__(feature_map, gen_feature_map[, n_jobs])

evaluate(x_vec[, y_vec])

Evaluate the quantum kernel.