|
| 1 | +# Hybrid quantum-classical unsupervised data clustering based on the Self-Organizing Feature Map |
| 2 | + |
| 3 | +Quantum assisted Self-Organizing Feature Map |
| 4 | + |
| 5 | +Unsupervised machine learning is one of the main techniques employed in artificial intelligence. |
| 6 | +Quantum computers offer opportunities to speed up such machine learning techniques. |
| 7 | +Here, we introduce an algorithm for quantum assisted unsupervised data clustering using the self-organizing feature map, a type of artificial neural network. |
| 8 | +We make a proof-of-concept realization of one of the central components on the IBM Q Experience |
| 9 | +and show that it allows us to reduce the number of calculations in a number of clusters. |
| 10 | +We compare the results with the classical algorithm on a toy example of unsupervised text clustering. |
| 11 | + |
| 12 | +## Make PDF |
| 13 | + |
| 14 | +``` |
| 15 | +make -C manuscript |
| 16 | +``` |
| 17 | + |
| 18 | +## Run notebooks |
| 19 | + |
| 20 | +### Setup environment |
| 21 | + |
| 22 | +```shell |
| 23 | +python3.8 -m venv <path/to/venv> |
| 24 | +source <path/to/venv>/bin/activate |
| 25 | +``` |
| 26 | + |
| 27 | + |
| 28 | +### Install dependencies |
| 29 | + |
| 30 | +```shell |
| 31 | +pip install -r requirements.txt |
| 32 | +``` |
| 33 | + |
| 34 | + |
| 35 | +### Download necessary data for [NLTK](https://www.nltk.org/install.html) |
| 36 | + |
| 37 | +```shell |
| 38 | +python -m nltk.downloader punkt |
| 39 | +python -m nltk.downloader wordnet |
| 40 | +``` |
| 41 | + |
| 42 | + |
| 43 | +### Create IPython Kernel |
| 44 | + |
| 45 | +```shell |
| 46 | +pip install ipykernel |
| 47 | +python -m ipykernel install --name qasofm-py3.8 --user |
| 48 | +``` |
| 49 | + |
| 50 | + |
| 51 | +### Set proxy configuration for Qiskit if necessary |
| 52 | + |
| 53 | +```shell |
| 54 | +$ cat ~/.qiskit/qiskit-ibm.json |
| 55 | +{ |
| 56 | + "default-ibm-quantum": { |
| 57 | + "channel": "ibm_quantum", |
| 58 | + "private_endpoint": false, |
| 59 | + "proxies": { |
| 60 | + "urls": { |
| 61 | + "https": "https://<username>:<password>@<endpoint>" |
| 62 | + } |
| 63 | + }, |
| 64 | + "token": "<token>", |
| 65 | + "url": "https://auth.quantum-computing.ibm.com/api" |
| 66 | + } |
| 67 | +} |
| 68 | +``` |
0 commit comments