cutqc2.library.Random package¶ Submodules¶ cutqc2.library.Random.random module¶ class cutqc2.library.Random.random.RandomCircuit(width, depth, connection_degree, num_hadamards, seed)[source]¶ Bases: object generate()[source]¶ generate_entangled()[source]¶ get_random_control(qubit_targets)[source]¶ Get a random control qubit Prioritize the ones with spare targets Else choose from qubits with #targets>0 get_random_target(control_qubit, qubit_targets)[source]¶ Get a random target qubit If the control qubit has exhausted its #targets, choose from existing targets Else prioritize the ones that have not been used Module contents¶