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']
Used in the notebooks
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.
Args |
n_library_circuits
|
The number of circuits to generate.
|
two_qubit_gate
|
The two qubit gate to use in the circuits.
|
max_cycle_depth
|
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 cycle_depths .
|
q0
|
The first qubit to use when constructing the circuits.
|
q1
|
The second qubit to use when constructing the circuits
|
random_state
|
A random state or seed used to deterministically sample the random circuits.
|