I am using the following code to compute QED for a given molecule, but the code gives the error: "AttributeError: module 'rdkit.Chem' has no attribute 'QED'"
from rdkit import Chemv = Chem.QED.default(mol)
from rdkit import Chem
v = Chem.QED.default(mol)
What is wrong with the code?
It seems that the QED module was not imported and hence you are getting the error.
You can try the following code. It should work without any error.
from rdkit.Chem import QEDv = QED.default(mol)
from rdkit.Chem import QED
v = QED.default(mol)