qiskit_nature/properties/second_quantization/electronic/angular_momentum.py
def from_legacy_driver_result(cls, result: LegacyDriverResult) -> "AngularMomentum":
        """Construct an AngularMomentum instance from a QMolecule.

        Args:
            result: the driver result from which to extract the raw data. For this property, a
                QMolecule is required!

        Returns:
            An instance of this property.

        Raises:
            QiskitNatureError: if a WatsonHamiltonian is provided.
        """
        cls._validate_input_type(result, LegacyElectronicStructureDriverResult)

        qmol = cast(QMolecule, result)

        return cls(
            qmol.num_molecular_orbitals * 2,
        )
Construct an AngularMomentum instance from a QMolecule.

        Args:
            result: the driver result from which to extract the raw data. For this property, a
                QMolecule is required!

        Returns:
            An instance of this property.

        Raises:
            QiskitNatureError: if a WatsonHamiltonian is provided.
        
Construct an AngularMomentum instance from a QMolecule.
Construct an AngularMomentum instance from a QMolecule .
def from_legacy_driver_result(cls, result: LegacyDriverResult) -> "AngularMomentum":
        cls._validate_input_type(result, LegacyElectronicStructureDriverResult)
        qmol = cast(QMolecule, result)
        return cls(
            qmol.num_molecular_orbitals * 2,
        )
def from_legacy_driver_result ( cls , result : LegacyDriverResult ) -> "AngularMomentum" : cls . _validate_input_type ( result , LegacyElectronicStructureDriverResult ) qmol = cast ( QMolecule , result ) return cls ( qmol . num_molecular_orbitals * 2 , )
Construct an AngularMomentum instance from a QMolecule.
Construct an AngularMomentum instance from a QMolecule .
"""Construct an AngularMomentum instance from a QMolecule.

        Args:
            result: the driver result from which to extract the raw data. For this property, a
                QMolecule is required!

        Returns:
            An instance of this property.

        Raises:
            QiskitNatureError: if a WatsonHamiltonian is provided.
        """
An instance of this property.
An instance of this property .
if a WatsonHamiltonian is provided.
if a WatsonHamiltonian is provided .
QiskitNatureError
cls
result
LegacyDriverResult
the driver result from which to extract the raw data. For this property, a
QMolecule is required!
the driver result from which to extract the raw data . For this property a QMolecule is required!