[go: up one dir, main page]

Skip to content

Qiskit Experiments library for GEM experiments

License

Notifications You must be signed in to change notification settings

qiskit-community/gem-suite

Repository files navigation

GEM Suite

License

The GEM (Generation of Entanglement by Measurement) protocol prepares a quantum state across many qubits using an efficient, measurement-based protocol. Generally, it is technical challenge to achieve this on current generation quantum devices because most preparation protocols are vulnerable to imperfections in gates and to noise. The protocol that realizes the Nishimori transition, also understood as a fault-tolerant threshold, is a constant depth method that demonstrates how measurement-based state preparation might be used on large-scale quantum devices exceeding a few hundred qubits. Through injecting coherent errors, the GEM experiment provides an estimate for how far below the error correction threshold a device is operating.

All technical details are available on arXiv: https://arxiv.org/abs/2309.02863

Because of the computationally intensive subroutine responsible for decoding the measurement outcomes, this library is mostly implemented in Rust programming language for performance. The core library is interfaced with Qiskit Experiments via PyO3 to produce experiment circuits with the Qiskit model and analyze the results. We support two minimum weight perfect matching decoders; pymatching and fusion-blossom.

This library is designed to work with, but not limited only to, IBM Quantum processors.

Installation

This package can be installed with pip using the command

pip install gem-suite

Example

In the GEM protocol, an atomic unit of the experiment is a plaquette, which is a collection of multiple qubits. For the case of IBM Quantum processors with heavy hexagonal lattices, a single plaquette contains 12 qubits and a single IBM Eagle processor has 18 plaquettes. This is an efficient compact representation of a quantum processor with a few hundred qubits. We anticipate very minor changes to this representation when scaling up to larger devices.

image

We can partly reproduce experiments in the publication with a few lines of code using the Qiskit Experiments framework.

from gem_suite.experiments import GemExperiment
from qiskit_ibm_runtime import QiskitRuntimeService

backend = QiskitRuntimeService().backend("ibm_cusco")

gem_exp = GemExperiment(plaquettes=range(18), backend=backend)
exp_data = gem_exp.run().block_for_results()

Please see our example notebook for the complete workflow.

License

Apache License 2.0