supergrad.utils.operators.qeye#
- supergrad.utils.operators.qeye(dimensions)[source]#
Identity operator.
SuperGrad-supported implementation of
qutip.core.operators.qeye().Original docstring below.
- Parameters:
dimensions ((int) or (list of int) or (list of list of int), Space) – Number of basis states in the Hilbert space. If provided as a list of ints, then the dimension is the product over this list, but the
dimsproperty of the new Qobj are set to this list. This can produce either oper or super depending on the passed dimensions.- Returns:
oper – Identity operator Qobj.
- Return type:
qobj