supermarq.benchmarks.mermin_bell ================================ .. py:module:: supermarq.benchmarks.mermin_bell Classes ------- .. autoapisummary:: supermarq.benchmarks.mermin_bell.MerminBell Module Contents --------------- .. py:class:: MerminBell(num_qubits: int) Bases: :py:obj:`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. .. py:method:: circuit() -> cirq.Circuit The Mermin-Bell circuit, simultaneously measuring Mermin terms in a GHZ circuit. :returns: The Mermin-Bell `cirq.Circuit`. .. py:method:: 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. :param counts: A dictionary containing the measurement counts from circuit execution. :returns: The score for the Mermin-Bell benchmark score. .. py:attribute:: mermin_operator .. py:attribute:: num_qubits .. py:attribute:: qubits