# Second quantized $S^2$ operator in Qiskit

Is it possible to obtain easily the second quantized $$S^2$$ operator in Qiskit, preferably from ElectronicStructureProblem?

I'm obtaining Hamiltonian via second_q_ops() method, accessing property ElectronicEnergy. Is something similar possible to obtain $$S^2$$?

I know, that this functionality is easily accessible in OpenFermion via s_squared_operator property.

Yes. In Nature there is the angular momentum operator which is S-squared (built via the AngularMomentum property class). The second_q_ops() link above refers to this as one of the operators which is available in the return.