Quantum Chemistry - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : System : Information : Updates : Maple 2022 : Quantum Chemistry

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

Continuum Solvents

QCT 2022 adds support for continuum solvents in Density Functional Theory (DFT).  Before we begin we load the QuantumChemistry package,     




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"




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;



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.

Ghost Atoms

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.

Exciton Populations

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;



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


















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.

Exporting Skeletal Structures

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.  


In QCT2022 we can export the skeletal structure to a file with the keyword file.

dir  kerneloptshomedir;



filename  catdir,\\Zaltoprofen.png;




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.

Using the Package in the Classroom

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.