-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from XanaduAI/16-fix-failing-examples
16 fix failing examples
- Loading branch information
Showing
9 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
These last two examples are pretty slow and require to have precomputed the molecule in an hdf5 file in advance. Please modify accordingly lines | ||
|
||
```python | ||
training_data_dirpath = os.path.normpath(dirpath + "/data/training/dissociation/") | ||
training_files = ["H2_dissociation_omegas.h5"] | ||
``` | ||
|
||
in those two files. In the case of `train_complex_model.py`, the hdf5 file should have processed the molecules with | ||
|
||
```python | ||
from grad_dft.interface.pyscf import molecule_from_pyscf | ||
omegas = jnp.array([0., 0.4]) | ||
molecule = molecule_from_pyscf(mf, omegas = omegas) | ||
``` | ||
|
||
The `test_constraints.py` file executes an example showing that constraints run. However, note that they have not been tested thoroughly. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters