Generalized quantum condition and supersymmetric quantum mechanics