restore a session previously saved by the package's Save command
string; string of the filename ending in .m containing saved session data
The Save command saves to a Maple .m file the remember (cache) tables used by the package to remember previously computed data, and the Restore command restores these tables from a Maple .m file.
The remember (cache) tables are used by the Quantum Chemistry package to retrieve data from calculations without recomputation. For example, after the energy of a molecule is computed by the Energy command with a given method and its options, the same command or other commands with the same options can generate properties or plots without reperforming the electronic structure calculation. The Save and Restore commands allow this useful behavior to be saved and restored between Maple sessions. The created files are compatible across different computers and even different operating systems, allowing the user to switch computers or operating systems. The commands can also be used to switch between different Maple interfaces to the Quantum Chemistry package including the worksheet, document, interactive (Maplet), and command line interfaces.
Because cache tables are cleared when they reach a prescribed size, it is possible that some calculations may need to be recomputed if some of the early cache in a long, memory-intensive session was cleared.
These commands do not save the user's variables in a session; if desired, such variables can be saved using the save command.
The Restore() command without a parameter opens a file dialogue for selecting the .m file.
The Restore(file) command with the string parameter file opens the file named file.m.
The string file requires the file's full path if the file is not located in Maple's current working directory, i.e. on Linux or MacOS the file might be "/home/john/ozone.m" or on Windows 64 bit it might be "C:/Users/John/Documents/ozone.m".
If the string file does not end in .m, the command will automatically append a ".m" to the given string.
The Maple command currentdir can be used to change the current working directory of the Maple session. Changing the current directory to "/home/john/" on Linux or MacOS, for example, would allow us to set file to "ozone.m" without the file's full path.
We obtain the molecular geometry of aspirin with the MolecularGeometry command
molecule ≔ MolecularGeometryaspirin;
We run a Variational2RDM calculation on the molecule with a [10,10] active space
We can save the data (cache tables) of this session
Now we restart the Maple kernel which removes all data
After loading the Quantum Chemistry package
we can restore the previous Quantum Chemistry session with the Restore command
Now we can execute the Variational2RDM command or another command using the same method and options without recomputation (note that the command executes instantly)
Download Help Document