spheres.utils.tensor_upgrade

spheres.utils.tensor_upgrade(O, i, n)[source]

Upgrades an operator to act on the i’th subspace of n subsystems.

Parameters
  • O (qt.Qobj) – Operator.

  • i (int) – Which subsytem to act on.

  • n (int) – Of how many.

Returns

upgraded

Return type

qt.Qobj