qc2nl / qc2

Facilitate the orchestration of quantum chemistry applications on quantum computers
https://qc2.readthedocs.io/
Apache License 2.0
3 stars 2 forks source link

Add default filename to qc2Data class #63

Closed Cmurilochem closed 2 months ago

Cmurilochem commented 6 months ago

Add a default filename in which to save the formated qchem data. This would be extremely useful in situations where the users do no want or even forget to provide a specific filename. The updated code could be as simple as:

class qc2Data:
    """Main qc2 class.

    ....
    """
    def __init__(
            self,
            molecule: Atoms = Atoms(),
            filename: str = "qchem_data.hdf5",
            *,
            schema: str = "qcschema"
    ):