qiskit_nature/properties/second_quantization/electronic/electronic_structure_driver_result.py
def second_q_ops(self) -> List[FermionicOp]:
        """Returns the list of `FermioncOp`s given by the properties contained in this one."""
        ops: List[FermionicOp] = []
        # TODO: make aux_ops a Dict? Then we don't need to hard-code the order of these properties.
        # NOTE: this will also get rid of the hard-coded aux_operator eigenvalue indices in the
        # `interpret` methods of all of these properties
        for cls in [
            ElectronicEnergy,
            ParticleNumber,
            AngularMomentum,
            Magnetization,
            ElectronicDipoleMoment,
        ]:
            prop = self.get_property(cls)  # type: ignore
            if prop is None:
                continue
            ops.extend(prop.second_q_ops())
        return ops
Returns the list of `FermioncOp`s given by the properties contained in this one.
Returns the list of `FermioncOp`s given by the properties contained in this one.
Returns the list of ` FermioncOp ` s given by the properties contained in this one .
def second_q_ops(self) -> List[FermionicOp]:
        ops: List[FermionicOp] = []
        for cls in [
            ElectronicEnergy,
            ParticleNumber,
            AngularMomentum,
            Magnetization,
            ElectronicDipoleMoment,
        ]:
            prop = self.get_property(cls)  
            if prop is None:
                continue
            ops.extend(prop.second_q_ops())
        return ops
def second_q_ops ( self ) -> List [ FermionicOp ] : ops : List [ FermionicOp ] = [ ] for cls in [ ElectronicEnergy , ParticleNumber , AngularMomentum , Magnetization , ElectronicDipoleMoment , ] : prop = self . get_property ( cls ) if prop is None : continue ops . extend ( prop . second_q_ops ( ) ) return ops
Returns the list of `FermioncOp`s given by the properties contained in this one.
Returns the list of ` FermioncOp ` s given by the properties contained in this one .
"""Returns the list of `FermioncOp`s given by the properties contained in this one.""" # TODO: make aux_ops a Dict? Then we don't need to hard-code the order of these properties. # NOTE: this will also get rid of the hard-coded aux_operator eigenvalue indices in the # `interpret` methods of all of these properties # type: ignore
self