Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/Free-Complement.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ reference_energies = [
@printf("%5s %-18s %s\n", "M_n", "This work", "Ref.")
println("----- ------------------ ------------")
for reference_energy in reference_energies
result = solve(H, basisset, info=-1)
result = solve(H, basisset)
@printf(
"%5d %18.15f %s\n",
length(basisset),
Expand Down
18 changes: 10 additions & 8 deletions docs/src/Rayleigh-Ritz.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,15 @@ BS = BasisSet(
nothing # hide
```

Solve the eigenvalue problem. You should find
Configure the method and solve the eigenvalue problem. You should find
```math
E_{n=1} = -0.499278~E_\mathrm{h},
```
which is amazingly good for only four basis functions according to [Thijssen(2007)](https://doi.org/10.1017/CBO9781139171397). The exact ground-state energy is ``-0.5~E_\mathrm{h}``.

```@repl example
solve(H, BS)
method = RayleighRitzMethod(BS)
solve(H, method)
```

## Example of Hydrogen Atom
Expand Down Expand Up @@ -297,12 +298,13 @@ The results agree with those in Table 1 of the Supporting Information. The small
### Solver

```@docs; canonical=false
solve(hamiltonian::Hamiltonian, basisset::BasisSet; perturbation=Hamiltonian(), info=4)
solve(hamiltonian::Hamiltonian, basis::Basis; perturbation=Hamiltonian(), info=4)
solve(hamiltonian::Hamiltonian, basisset::GeometricBasisSet; perturbation=Hamiltonian(), info=4)
optimize(hamiltonian::Hamiltonian, basisset::BasisSet; perturbation=Hamiltonian(), info=4, progress=true, optimizer=Optim.NelderMead(), options...)
optimize(hamiltonian::Hamiltonian, basis::Basis; perturbation=Hamiltonian(), info=1, progress=true, optimizer=Optim.NelderMead(), options...)
optimize(hamiltonian::Hamiltonian, basisset::GeometricBasisSet; perturbation=Hamiltonian(), info=4, progress=true, optimizer=Optim.NelderMead(), options...)
RayleighRitzMethod
ResultRayleighRitz
ResultOptimizationRayleighRitz
solve(hamiltonian::Hamiltonian, method::RayleighRitzMethod; perturbation=Hamiltonian())
optimize
expectation
verification
```

### Basis Set
Expand Down
Loading
Loading