qiskit_nature/properties/second_quantization/electronic/particle_number.py
def second_q_ops(self) -> List[FermionicOp]:
        """Returns a list containing the particle number operator."""
        op = FermionicOp(
            [(f"N_{o}", 1.0) for o in range(self._num_spin_orbitals)],
            register_length=self._num_spin_orbitals,
        )
        return [op]
Returns a list containing the particle number operator.
Returns a list containing the particle number operator.
Returns a list containing the particle number operator .
def second_q_ops(self) -> List[FermionicOp]:
        op = FermionicOp(
            [(f"N_{o}", 1.0) for o in range(self._num_spin_orbitals)],
            register_length=self._num_spin_orbitals,
        )
        return [op]
def second_q_ops ( self ) -> List [ FermionicOp ] : op = FermionicOp ( [ ( f"N_{o}" , 1.0 ) for o in range ( self . _num_spin_orbitals ) ] , register_length = self . _num_spin_orbitals , ) return [ op ]
Returns a list containing the particle number operator.
Returns a list containing the particle number operator .
"""Returns a list containing the particle number operator."""
self