sQUlearn / squlearn

scikit-learn interface for quantum algorithms
https://squlearn.github.io
Apache License 2.0
58 stars 18 forks source link

Adapatation of KernelOptimizer to squlearn standards #274

Closed David-Kreplin closed 4 weeks ago

David-Kreplin commented 5 months ago

The current implementation of the Kernel Optimization is somewhat misaligned with squlearn's design principles.

It would be beneficial to modify the implementation so that the KernelOptimizer is based on the KernelMatrixBase class. The inputs should include a KernelMatrix (KernelMatrixBase – currently either Fidelity or Projected Kernel), the loss function, and the optimizer. The optimization should be automatically triggered when the fit function in the high-level Kernel implementation is called.