qat.mps.random_circuits.random_circuit_generator
- qat.mps.random_circuits.random_circuit_generator(nqbits: int, depth: int, alternate: bool = True)
Generate a random circuit with 1 and 2 qubits Haar-random generated gates of arbitrary number of qubits and depth.
- Parameters
nqbits (int) – Number of qubits in the circuit.
depth (int) – Number of layers in the circuit.
alternate (bool) – If True, alternates between Haar-random 1 qubit gate et Haar-random 2 qubits gate every layer. If False, every layer will contain 2-qubits Haar-random gates only. Default to True.
- Returns
Random circuit
- Return type
circuit (
Circuit
)
Note
This method is available as an application in Qaptiva Access.