|View source on GitHub|
Create a circuit representation of a grid interaction pattern on a given device topology.
cirq.experiments.random_quantum_circuit_generation.get_grid_interaction_layer_circuit( device_graph: nx.Graph, pattern: Sequence[
cirq.experiments.GridInteractionLayer] = cirq.experiments.HALF_GRID_STAGGERED_PATTERN, two_qubit_gate=(ops.ISWAP ** 0.5) ) -> "cirq.Circuit"
The resulting circuit is deterministic, of depth len(pattern), and consists of
applied to each pair in
pattern restricted to available connections in
A graph whose nodes are qubits and whose edges represent the possibility of
doing a two-qubit gate. This combined with the
A sequence of
||The two qubit gate to use in constructing the circuit layers.|