View source on GitHub |
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: Optional[cirq.Qid
] = None,
q1: Optional[cirq.Qid
] = None,
random_state: 'cirq.RANDOM_STATE_OR_SEED_LIKE' = None
) -> cirq.Circuit
The resulting circuit will have num_cnots
number of CNOTs that will be
surrounded by random PhasedXPowGate
instances on both qubits.
Returns | |
---|---|
the random two qubit circuit |