|View source on GitHub|
Generate a library of two-qubit Circuits.
cirq.experiments.random_quantum_circuit_generation.generate_library_of_2q_circuits( n_library_circuits: int, two_qubit_gate: "cirq.Gate", *, max_cycle_depth: int = 100, q0: "cirq.Qid" = devices.LineQubit(0), q1: "cirq.Qid" = devices.LineQubit(1), random_state: "cirq.RANDOM_STATE_OR_SEED_LIKE" = None ) -> List['cirq.Circuit']
For single-qubit gates, this uses PhasedXZGates where the axis-in-XY-plane is one of eight eighth turns and the Z rotation angle is one of eight eighth turns. This provides 8*8=64 total choices, each implementable with one PhasedXZGate. This is appropriate for architectures with microwave single-qubit control.
||The number of circuits to generate.|
||The two qubit gate to use in the circuits.|
The maximum cycle_depth in the circuits to generate. If you are using XEB,
this must be greater than or equal to the maximum value in
||The first qubit to use when constructing the circuits.|
||The second qubit to use when constructing the circuits|
||A random state or seed used to deterministically sample the random circuits.|