Creates a random two qubit circuit with the given number of CNOTs.
cirq.testing.random_two_qubit_circuit_with_czs(
num_czs: int = 3,
q0: cirq.ops.Qid
= None,
q1: cirq.ops.Qid
= None,
random_state: 'cirq.RANDOM_STATE_OR_SEED_LIKE' = None
) -> cirq.circuits.Circuit
The resulting circuit will have num_cnots
number of CNOTs that will be
surrounded by random PhasedXPowGate
instances on both qubits.
Args |
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
|
Returns |
the random two qubit circuit
|