supergrad.utils.operators.charge

Contents

supergrad.utils.operators.charge#

supergrad.utils.operators.charge(nmax, nmin=None, frac=1)[source]#

Generate the diagonal charge operator over charge states

SuperGrad-supported implementation of qutip.core.operators.charge().

Original docstring below.

from Nmin to Nmax.

Parameters:

frac (float, default: 1) – Specify fractional charge if needed.

Returns:

C – Charge operator over [Nmin, Nmax].

Return type:

Qobj