For a given device, prepare a set of combinations to efficiently sample
cirq.experiments.GridInteractionLayer] = cirq.experiments.HALF_GRID_STAGGERED_PATTERN,
random_state: "cirq.RANDOM_STATE_OR_SEED_LIKE" = None
) -> List[
parallel two-qubit XEB circuits.
The number of circuits in your library. Likely the value
The number of combinations (with replacement) to generate
using the library circuits. Since this function returns a
CircuitLibraryCombination, the combinations will be represented
by indexes between 0 and
n_library_circuits-1 instead of the circuits
themselves. The more combinations, the more precise of an estimate for XEB
fidelity estimation, but a corresponding increase in the number of circuits
you must sample.
A graph whose nodes are qubits and whose edges represent
the possibility of doing a two-qubit gate. This combined with the
pattern argument determines which two qubit pairs are activated
A sequence of
GridInteractionLayer, each of which has
a particular set of qubits that are activated simultaneously. These
pairs of qubits are deduced by combining this argument with
A random-state-like object to seed the random combination generation.
A list of
CircuitLibraryCombination, each corresponding to an interaction
pattern where there is a non-zero number of pairs which would be activated.
Each object has a
combinations matrix of circuit
indices of shape
(n_combinations, len(pairs)) where
be different for each entry (i.e. for each layer in
returned list can be provided to
sample_2q_xeb_circuits to efficiently
sample parallel XEB circuits.