Operator Generator

tqsim.lib.operator_generator.generate_braiding_operator(index: int, nb_qudits: int, nb_anyons_per_qudit: int)[source]

Generates the braiding operator of index ‘index’ for a system of a given number of qudits and anyons per qudit. This operator braids anyons at positions ‘index’ and ‘index’+1.

Parameters:
  • index (int) – The operator’s index.

  • nb_qudits (int) – Number of qudits in the circuit.

  • nb_anyons_per_qudit (int) – Number of anyons in each qudit.

Returns:

Matrix representation of the braiding operator.

Return type:

List