qudit_sim.apps.gates.gate_components

qudit_sim.apps.gates.gate_components(sim_result, comp_dim=None)

Compute the Pauli components of the generator of the unitary obtained from the simulation.

Parameters
  • sim_result (Union[PulseSimResult, List[PulseSimResult]]) – Pulse simulation result or a list thereof.

  • comp_dim (Optional[int]) – Interpret the result in the given matrix dimension. If None, dimension in the simulation is used.

Return type

numpy.ndarray

Returns

Array of Pauli components of the generator of the gate (\(i \mathrm{log} U\)), or a list of such arrays if sim_result is an array.