![]() |
Generates Google Random Circuits v2 as in github.com/sboixo/GRCS cz_v2.
cirq.generate_boixo_2018_supremacy_circuits_v2_grid(
n_rows: int, n_cols: int, cz_depth: int, seed: int
) -> cirq.Circuit
See also https://arxiv.org/abs/1807.10749
Args | |
---|---|
n_rows
|
number of rows of a 2D lattice. |
n_cols
|
number of columns. |
cz_depth
|
number of layers with CZ gates. |
seed
|
seed for the random instance. |
Returns | |
---|---|
A circuit corresponding to instance inst_{n_rows}x{ncols}{czdepth+1}{seed} |
The mapping of qubits is cirq.GridQubit(j,k) -> qj*n_cols+k