# cirq.experiments.CrossEntropyResult¶

class cirq.experiments.CrossEntropyResult(data: List[cirq.experiments.cross_entropy_benchmarking.CrossEntropyPair], repetitions: int)[source]

Results from a cross-entropy benchmarking (XEB) experiment.

data
A sequence of NamedTuples, each of which contains two fields:
num_cycle: the circuit depth as the number of cycles, where
a cycle consists of a layer of single-qubit gates followed
by a layer of two-qubit gates.
xeb_fidelity: the XEB fidelity after the given cycle number.
repetitions

The number of circuit repetitions used.

__init__(data: List[cirq.experiments.cross_entropy_benchmarking.CrossEntropyPair], repetitions: int) → None

Initialize self. See help(type(self)) for accurate signature.

Methods

 Fit a depolarizing error model for a cycle. plot([ax]) Plots the average XEB fidelity vs the number of cycles.