We're celebrating World Quantum Day 2022! Join us

cirq.testing.random_two_qubit_circuit_with_czs

Creates a random two qubit circuit with the given number of CNOTs.

The resulting circuit will have num_cnots number of CNOTs that will be surrounded by random PhasedXPowGate instances on both qubits.

num_czs the number of CNOTs to be guaranteed in the circuit
q0 the first qubit the circuit should operate on
q1 the second qubit the circuit should operate on
random_state an optional random seed

the random two qubit circuit