qat.mps.random_circuits.random_gate_generator

qat.mps.random_circuits.random_gate_generator(name: str = 'random', arity: int = 2)

Generate Haar-random quantum gate of given arity.

Note

The algorithm implemented originates from this article: https://arxiv.org/abs/math-ph/0609050v2 .

Parameters
  • name (str) – Name of the generated gate.

  • arity (int) – Arity of the randomly generated gate.

Returns

Haar-random gate of selected random arity.

Return type

ParamGate