supermarq.benchmarks.mermin_bell

Classes

MerminBell

The Mermin-Bell benchmark is a test of a quantum computer's ability to exploit purely quantum

Module Contents

class supermarq.benchmarks.mermin_bell.MerminBell(num_qubits: int)

Bases: supermarq.benchmark.Benchmark

The Mermin-Bell benchmark is a test of a quantum computer’s ability to exploit purely quantum phenomemna such as superposition and entanglement. It is based on the famous Bell-inequality tests of locality. Performance is based on a QPU’s ability to prepare a GHZ state and measure the Mermin operator.

circuit() cirq.Circuit

The Mermin-Bell circuit, simultaneously measuring Mermin terms in a GHZ circuit.

Returns:

The Mermin-Bell cirq.Circuit.

score(counts: dict[str, float]) float

Compute the score for the N-qubit Mermin-Bell benchmark.

This function assumes the regular big endian ordering of bitstring results.

Parameters:

counts – A dictionary containing the measurement counts from circuit execution.

Returns:

The score for the Mermin-Bell benchmark score.

mermin_operator
num_qubits
qubits