Skip to content

Python code that compares Quantum and Standard Kernelling for highly irregular data using Pennylane and scikitlearn

Notifications You must be signed in to change notification settings

theBlackfish01/quantum-kernel-comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

A sample dataset is generated with data points that are arranged in concentric circles and therefore are unable to be effectively separated linearly. We define a Quantum Embedding Kernel using Pennylane’s kernels modules, with random parameters. Using this output, an SVC is applied and the accuracy is measured. The next step is to apply standard kernels to the original dataset. These kernels are of linear, polynomial, and radial basis function form. As before, they are passed to an SVC and the accuracy is measured.

The data generation and processing was conducted in Python. Quantum kernelling used Pennylane. The SVC algorithm was from scikit-learn. NumPy was used for data processing and Matplotlib was used for plotting the data. Code for Quantum kernelling was adapted from a Pennylane tutorial.

About

Python code that compares Quantum and Standard Kernelling for highly irregular data using Pennylane and scikitlearn

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages