Maple Quantum Chemistry Toolbox
The Maple Quantum Chemistry Toolbox from RDMChem, a separate add-on product to Maple, is a powerful environment for the computation and visualization of the electronic structure of molecules. In Maple 2022, this toolbox has significant new features and enhancements: (1) a new option for solvents in Density Functional Theory as well as a new extendable database of solvents and their dielectric constants, (2) a new option for ghost atoms to correct basis set superposition errors, (3) new commands for computing and visualizing exciton populations in molecules, (4) a new option for exporting skeletal structures to a graphics file including jpg, png, tif, and bmp formats, (5) a new addition to the ≈30 builtin lessons for classroom learning in undergraduate-to-graduate chemistry and physics, and (6) additional enhancements throughout the package.
Note that the Maple Quantum Chemistry Toolbox (QCT) is required in order to execute the examples in this worksheet.
Continuum Solvents
Ghost Atoms
Exciton Populations
Exporting Skeletal Structures
Using the Package in the Classroom
QCT 2022 adds support for continuum solvents in Density Functional Theory (DFT). Before we begin we load the QuantumChemistry package,
withQuantumChemistry;
AOLabels,ActiveSpaceCI,ActiveSpaceSCF,AtomicData,BondAngles,BondDistances,Charges,ChargesPlot,ContractedSchrodinger,CorrelationEnergy,CoupledCluster,DensityFunctional,DensityPlot3D,Dipole,DipolePlot,Energy,ExcitationEnergies,ExcitationSpectra,ExcitationSpectraPlot,ExcitedStateEnergies,ExcitedStateSpins,ExcitonDensityPlot,ExcitonPopulations,ExcitonPopulationsPlot,FullCI,GeometryOptimization,HartreeFock,Interactive,Isotopes,MOCoefficients,MODiagram,MOEnergies,MOIntegrals,MOOccupations,MOOccupationsPlot,MOSymmetries,MP2,MolecularData,MolecularDictionary,MolecularGeometry,NuclearEnergy,NuclearGradient,OscillatorStrengths,Parametric2RDM,PlotMolecule,Populations,Purify2RDM,RDM1,RDM2,RTM1,ReadXYZ,Restore,Save,SaveXYZ,SearchBasisSets,SearchFunctionals,SkeletalStructure,SolventDatabase,Thermodynamics,TransitionDipolePlot,TransitionDipoles,TransitionOrbitalPlot,TransitionOrbitals,Variational2RDM,VibrationalModeAnimation,VibrationalModes,Video
The new command SolventDatabase accepts a name or part of a name and returns all matching solvents and their dielectric constants. Using SolventDatabase, we search for solvents containing "Toluene"
SolventDatabaseToluene;
p-IsoPropylToluene,2.23220000,Toluene,2.37410000,o-ChloroToluene,4.63310000,a-ChloroToluene,6.71750000,o-NitroToluene,25.66900000
Next we can perform a DFT calculation for a water molecule in the one of these solvents, i.e. "Toluene". After we import the geometry of water with the MolecularGeometry command
water ≔ MolecularGeometrywater;
water≔O,0,0,0,H,0.27740000,0.89290000,0.25440000,H,0.60680000,−0.23830000,−0.71690000
we use the DensityFunctional command to perform the DFT calculation
data ≔ DensityFunctionalwater,basis=cc-pvdz,solvent=Toluene";
The new solvent keyword implements a domain-decomposition COnductor-like Screening MOdel (ddCOSMO) for solvation, which accounts implicitly for the interactions between the specified molecule (solute) and solvent.
When modeling intermolecular interactions, it is often necessary to correct for basis set superposition error (BSSE). In BSSE the intermolecular interaction is overestimated due to the incompleteness of the basis set. A common approach to correcting BSSE is the counterpoise correction. The counterpoise correction estimates the basis-set incompleteness by performing a series of calculations with ghost atoms. Ghost atoms are ethereal in that they only contribute basis functions of the specified atom without adding a nucleus or any additional electrons. QCT 2022 adds support for ghost atoms to all methods through the new keyword ghost. For example, we can perform a Parametric2RDM calculation of neon with a neon ghost atom.
data ≔ Parametric2RDMNe,0,0,0, basis=cc-pvdz,ghost=Ne,0,0,1.0;
The additional basis functions on the neon ghost atom lower the total energy from -128.679 hartrees (without the ghost atom) to -128.685 hartrees.
QCT2022 can compute the exciton populations of a molecule. Excitons are quasi-particles that consist of an electron and a hole (the absence of an electron). These particles are important because they can absorb, transport, and emit energy. Consider the benzene molecule
benzene ≔ MolecularGeometrybenzene;
benzene≔C,−1.21310000,−0.68840000,0,C,−1.20280000,0.70640000,0.00010000,C,−0.01030000,−1.39480000,0,C,0.01040000,1.39480000,−0.00010000,C,1.20280000,−0.70630000,0,C,1.21310000,0.68840000,0,H,−2.15770000,−1.22440000,0,H,−2.13930000,1.25640000,0.00010000,H,−0.01840000,−2.48090000,−0.00010000,H,0.01840000,2.48080000,0,H,2.13940000,−1.25630000,0.00010000,H,2.15770000,1.22450000,0
We perform a variational 2-RDM calculation with a 6-electrons-in-6-orbitals [6,6] active space
data ≔ Variational2RDMbenzene, active=6,6,return_rdm=rdm1_and_rdm2;
After the calculation we use the new command ExcitonPopulations to compute the exciton populations, the number of excitons in a given exciton (particle-hole) state
pops ≔ ExcitonPopulationsbenzene,data,nexcitons=8, showtable=true:
Exciton State
Exciton Population
1
1.00564746
2
1.00559656
3
0.99287953
4
0.95440962
5
0.95438150
6
0.95385219
7
0.95361623
8
0.95208483
The populations can be plotted with the new command ExcitonPopulationsPlot
ExcitonPopulationsPlotpops, color=Nautical Light Blue;
The particle and hole relationship of each exciton can be visualized with the new command ExcitonDensityPlot. Figure 1, for example, shows the particle and hole densities for the first exciton state in the table and figure above.
Figure 1: Output from ExcitonDensityPlot
For a particle placed in the 2pz orbital of one of the carbon atoms, whose density is shown in nautical red, the density of the hole is shown in light nautical blue.
A new keyword option to the command SkeletalStructure allows us to write skeletal structures to a jpg, png, tif, or bmp graphics file. The file type is determined from the extension given to the file name. For example, let's retrieve the skeletal structure of the non-steroidal anti-inflammatory drug (NSAID) Zaltoprofen.
SkeletalStructureZaltoprofen;
In QCT2022 we can export the skeletal structure to a file with the keyword file.
dir ≔ kerneloptshomedir;
dir≔C:\Users\david
filename ≔ catdir,\\Zaltoprofen.png;
filename≔C:\Users\david\Zaltoprofen.png
SkeletalStructureZaltoprofen,file=filename;
In addition to printing the skeletal structure, the command with file writes a png file to the filename. Note that we must use a directory with write permissions.
The Maple Quantum Chemistry Toolbox includes approximately 30 lessons that can be used in chemistry and physics courses from advanced high school courses through the graduate level. These lessons and associated curricula provide instructors and students with real-time quantum chemistry computations and visualizations that quickly deepen understanding of molecular concepts. Detailed lesson plans and curricula are provided for Introductory (General) Chemistry, Physical Chemistry (Quantum Mechanics and Thermodynamics), Thermodynamics (Physics), Quantum Mechanics (Physics), Computational Chemistry, and Quantum Chemistry as well as Advanced Placement (AP) and International Baccalaureate (IB) chemistry courses. Topics include atomic structure, chemical bonding, the Maxwell-Boltzmann distribution, heat capacity, enthalpy, entropy, free energy, particle-in-a-box, vibrational normal modes, infrared spectroscopy, as well as advanced electronic structure methods. Use of the QCT in the classroom is described in a recent paper in J. Chem. Ed. QCT 2022 includes a new lesson for Physical Chemistry and Undergraduate Quantum Mechanics on Huckel Theory and Conjugated Molecules. Within the lesson we compare the molecular orbitals predicted from Huckel Theory with those predicted from ab initio electronic structure calculations using the Variational2RDM method. The Maple environment allows us to seamlessly combine analytical work using the LinearAlgebra package with electronic structure calculations and visualizations from the QCT.
Download Help Document