class_docstr: Interface to DQC's KS calculation.
  
  Parameters
  ----------
  qc: BaseQCCalc
      object often acts as a wrapper around an engine class (from dqc.qccalc) that contains information about the self-consistent iterations.
  
  References
  ----------
  Kasim, Muhammad F., and Sam M. Vinko. "Learning the exchange-correlation functional from nature with fully differentiable density functional theory." Physical Review Letters 127.12 (2021): 126403.
  https://github.com/diffqc/dqc/blob/master/dqc/qccalc/ks.py
class_docstr_tok: ["Interface","to","DQC","'s","KS","calculation",".","Parameters","--","--","--","--","--","qc",":","BaseQCCalc","object","often","acts","as","a","wrapper","around","an","engine","class","(","from","dqc.qccalc",")","that","contains","information","about","the","self-consistent","iterations",".","References","--","--","--","--","--","Kasim",",","Muhammad","F.",",","and","Sam","M.","Vinko",".","``","Learning","the","exchange-correlation","functional","from","nature","with","fully","differentiable","density","functional","theory",".","''","Physical","Review","Letters","127.12","(","2021",")",":","126403.","https",":","\/\/github.com\/diffqc\/dqc\/blob\/master\/dqc\/qccalc\/ks.py"]
docstr: Returns
  -------
  The total energy of the Kohn-Sham calculation for a particular system.
docstr_tok: ["Returns","--","--","--","-","The","total","energy","of","the","Kohn-Sham","calculation","for","a","particular","system","."]
code: def energy(self) -> torch.Tensor:
      """
      Returns
      -------
      The total energy of the Kohn-Sham calculation for a particular system.
      """
      return self.qc.energy()
  
imports: import hashlib
  import xitorch
  from dataclasses import dataclass
  from abc import abstractmethod, abstractproperty
  from typing import Union, List, TypeVar, Generic, Callable
label_desc: Use image node_id 2 for calling the KSCalc obj's underlying member method code with example usage: obj.energy() and returns: self