cirq.generate_boixo_2018_supremacy_circuits_v2

cirq.generate_boixo_2018_supremacy_circuits_v2(qubits: Iterable[cirq.devices.grid_qubit.GridQubit], cz_depth: int, seed: int) → cirq.circuits.circuit.Circuit[source]
Generates Google Random Circuits v2 as in github.com/sboixo/GRCS cz_v2.
Parameters
  • qubits – qubit grid in which to generate the circuit.

  • cz_depth – number of layers with CZ gates.

  • seed – seed for the random instance.

Returns

A circuit corresponding to instance inst_{n_rows}x{n_cols}_{cz_depth+1}_{seed}

The mapping of qubits is cirq.GridQubit(j,k) -> q[j*n_cols+k] (as in the QASM mapping)