Dataset for quantum machine learning, generated by the VQE algorithm.
Table of Contents
Quantum machine learning has the potential to computationally outperform classical machine learning. However, it is uncertain whether quantum machine learning will be practically useful for solving real-world problems. To explore this, we propose a machine learning task of clustering and classifying quantum circuits, which is expected to be a useful application of quantum methods. And, to support this task, we generated a dataset of quantum circuits optimized by the variational quantum eigensolver (VQE).
You can clone this GitHub repository; the dataset appears under data/qasm.
This repo also contains ground state of the Hamiltonian under data/ground_state and some scripts for benchmark and
visualization.
git clone git@github.com:Qulacs-Osaka/VQE-generated-dataset.git| Name | Content | Examples | Size |
|---|---|---|---|
data/qasm/04qubit |
4-qubit quantum circuits | 1,500 | 15 MBytes |
data/qasm/08qubit |
8-qubit quantum circuits | 1,800 | 49 MBytes |
data/qasm/12qubit |
12-qubit quantum circuits | 1,800 | 89 MBytes |
data/qasm/16qubit |
16-qubit quantum circuits | 1,800 | 138 MBytes |
data/qasm/20qubit |
20-qubit quantum circuits | 1,800 | 197 MBytes |
Quantum circuits and ground state of Hamiltonian are assigned to one of the following Hamiltonian's labels:
| Label | Name | Hamiltonian |
|---|---|---|
| 0 | 1D transverse-field Ising model | |
| 1 | 1D Heisenberg model | |
| 2 | Su-Schrieffer-Heeger model | |
| 3 |
|
|
| 4 | 1D Hubbard model | |
| 5 | 2D Hubbard model |
Quantum circuits data is assigned to one of the following ansatz's labels:
| Label | ansatz type | Mapping |
|---|---|---|
| 0 | Hamiltonian ansatz | |
| 1 | Hardware-efficient ansatz | Chain |
| 2 | Complete | |
| 3 | Ladder | |
| 4 | Cross-Ladder | |
| 5 | 1D brick-block ansatz | Chain |
| 6 | Stair | |
| 7 | Complete | |
| 8 | Ladder | |
| 9 | Cross-Ladder |
See example/ansatz_plot.ipynb for a detailed implementation of ansatz with Qiskit.
Use utils/qc_reader.py in this repo:
from utils import qc_reader
# label_kind: {‘hamiltonian’, ‘ansatz’, ‘ansatz_reps’}, default=’hamiltonian’
qasm_str, label = qc_reader.load_qc(path="data/qasm", n_qubit=4, label_kind="hamiltonian")colored depending on their label
colored depending on their fidelity with the ground state of each label’s Hamiltonian
If you use the dataset in a scientific publication, we would appreciate references to the following paper:
VQE-generated Quatnum Circuit Dataset for Machine Learning. Akimoto Nakayama, Kosuke Mitarai, Leonardo Placidi, Takanori Sugimoto and Keisuke Fujii. VQE-generated Quantum Circuit Dataset for Machine Learning
Biblatex entry:
@misc{nakayama2023vqegenerated,
title={VQE-generated Quantum Circuit Dataset for Machine Learning},
author={Akimoto Nakayama and Kosuke Mitarai and Leonardo Placidi and Takanori Sugimoto and Keisuke Fujii},
year={2023},
eprint={2302.09751},
archivePrefix={arXiv},
primaryClass={quant-ph}
}The dataset was published.
- Added this changelog :)
- The data for label 5 has been changed due to a change in the way the Hamiltonian is mapped to the qubits in label 5. See updated arxiv for details.
- Updated ground state for label 5.
- Updated visualization results.
- Added 20-qubits dataset
- Added an example implementation of ansatz



