You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Using `hatch`, `uv` or any pyproject-compatible Python manager
4
2
5
-
Edit file `pyproject.toml` to add the line
6
3
7
-
```toml
8
-
"quantum-evolution-kernel"
9
-
```
4
+
The Quantum Evolution Kernel is a Python library designed for the machine learning community to help users design quantum-driven similarity metrics for graphs and to use them inside kernel-based machine learning algorithms for graph data.
10
5
11
-
to the list of `dependencies`.
6
+
The core of the library is focused on the development of a classification algorithm for molecular-graph dataset as it is presented in the published paper [Quantum feature maps for graph machine learning on a neutral atom quantum processor](https://journals.aps.org/pra/abstract/10.1103/PhysRevA.107.042615).
12
7
13
-
### Using `pip` or `pipx`
14
-
To install the `pipy` package using `pip` or `pipx`
8
+
Users setting their first steps into quantum computing will learn how to implement the core algorithm in a few simple steps and run it using the Pasqal Neutral Atom QPU. More experienced users will find this library to provide the right environment to explore new ideas - both in terms of methodologies and data domain - while always interacting with a simple and intuitive QPU interface.
# Prepare a machine learning pipeline with Scikit Learn.
56
-
from sklearn.model_selection import train_test_split
57
-
from sklearn.svm importSVC
58
-
59
-
X = [data for data in processed_dataset] # Features
60
-
y = [data.target for data in processed_dataset] # Targets
61
-
X_train, X_test, y_train, y_test = train_test_split(X, y, stratify= y, test_size=0.2, random_state=42)
62
-
63
-
# Train a kernel
64
-
from qek.kernel import QuantumEvolutionKernel asQEK
65
-
kernel = QEK(mu=0.5)
66
-
model = SVC(kernel=kernel, random_state=42)
67
-
model.fit(X_train, y_train)
68
-
```
69
-
70
-
## Documentation
71
-
72
-
::: qek
73
-
74
-
## Tutorials
75
-
76
-
We have a two parts tutorial:
77
-
78
-
1.[Using a Quantum Device to extract machine-learning features](https://github.com/pasqal-io/quantum-evolution-kernel/blob/main/examples/tutorial%201%20-%20Using%20a%20Quantum%20Device%20to%20Extract%20Machine-Learning%20Features.ipynb);
79
-
2.[Machine Learning with the Quantum Evolution Kernel](https://github.com/pasqal-io/quantum-evolution-kernel/blob/main/examples/tutorial%202%20-%20Machine-Learning%20with%20the%20Quantum%20EvolutionKernel.ipynb)
80
10
81
11
## Getting in touch
82
12
@@ -88,4 +18,4 @@ We have a two parts tutorial:
88
18
89
19
The GitHub repository is open for contributions!
90
20
91
-
Don't forget to read the [Contributor License Agreement]().
21
+
Don't forget to read the [Contributor License Agreement](https://github.com/pasqal-io/quantum-evolution-kernel/blob/main/docs/index.md).
These tutorials will teach you how to use the quantum APIs for feature-extraction:
4
+
5
+
1.[Using a Quantum Device to extract machine-learning features (high-level)](https://github.com/pasqal-io/quantum-evolution-kernel/blob/main/examples/tutorial%201%20-%20Using%20a%20Quantum%20Device%20to%20Extract%20Machine-Learning%20Features.ipynb);
6
+
2.[Using a Quantum Device to extract machine-learning features (low-level)](https://github.com/pasqal-io/quantum-evolution-kernel/blob/main/examples/tutorial%201a%20-%20Using%20a%20Quantum%20Device%20to%20Extract%20Machine-Learning%20Features%20-%20low-level.ipynb);
7
+
8
+
# Machine Learning
9
+
10
+
1.[Machine Learning with the Quantum Evolution Kernel](https://github.com/pasqal-io/quantum-evolution-kernel/blob/main/examples/tutorial%202%20-%20Machine-Learning%20with%20the%20Quantum%20EvolutionKernel.ipynb)
Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
6
6
name = "quantum-evolution-kernel"
7
7
description = "A Python library designed for the machine learning community to help users design quantum-driven similarity metrics for graphs and to use them inside kernel-based machine learning algorithms for graph data.ide the right environment to explore new ideas - both in terms of methodologies and data domain - while always interacting with a simple and intuitive QPU interface."
0 commit comments