Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: finish hubbard Brinkmann-Rice tutorial #27

Merged
merged 61 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
e7136d8
fix typos
thenoursehorse Oct 4, 2023
65efb3f
wording and typos
thenoursehorse Oct 4, 2023
65c1410
add actions build
thenoursehorse Oct 4, 2023
906e1d0
fix gh actions
thenoursehorse Oct 4, 2023
bcb4724
fix gh actions
thenoursehorse Oct 4, 2023
de055bb
fix gh actions
thenoursehorse Oct 4, 2023
c657e55
fix gh actions
thenoursehorse Oct 4, 2023
e2f4317
fix gh actions
thenoursehorse Oct 4, 2023
b7d8975
fix gh actions
thenoursehorse Oct 4, 2023
54f5e07
fix gh actions
thenoursehorse Oct 4, 2023
00f5312
fix gh actions
thenoursehorse Oct 4, 2023
101347c
fix gh actions
thenoursehorse Oct 4, 2023
90b193a
fix gh actions
thenoursehorse Oct 4, 2023
ec941b6
fix gh actions
thenoursehorse Oct 5, 2023
7f279af
fix gh actions
thenoursehorse Oct 5, 2023
efee110
fix gh actions
thenoursehorse Oct 5, 2023
efeeb50
fix github actions
thenoursehorse Oct 5, 2023
57e6cb0
fix github actions
thenoursehorse Oct 5, 2023
50cc09e
fix github actions
thenoursehorse Oct 5, 2023
6c7bbce
fix github actions
thenoursehorse Oct 5, 2023
5ef05f3
fix github actions
thenoursehorse Oct 5, 2023
d31fb07
fix github actions
thenoursehorse Oct 5, 2023
99cae9c
fix github actions
thenoursehorse Oct 5, 2023
586ebe1
add python version dependency
thenoursehorse Oct 5, 2023
7a7ef4a
fix github actions
thenoursehorse Oct 5, 2023
a0da736
fix github actions
thenoursehorse Oct 5, 2023
0db30e2
fix github actions
thenoursehorse Oct 5, 2023
51de3bd
introduce a TODO
thenoursehorse Oct 5, 2023
9c5d264
fix github actions
thenoursehorse Oct 5, 2023
91a0f34
fix github actions
thenoursehorse Oct 5, 2023
071e232
test triqs-hf actions
thenoursehorse Oct 5, 2023
6b37db7
fix github actions
thenoursehorse Oct 6, 2023
79b46fb
add to todo
thenoursehorse Oct 6, 2023
0ae1b9f
add to todo
thenoursehorse Oct 6, 2023
c2cb9e3
remove triqs dependency
thenoursehorse Oct 6, 2023
4415bfc
fix docker files
thenoursehorse Oct 6, 2023
df086ed
add disables reftypes
thenoursehorse Oct 6, 2023
7dd0691
fix github actions
thenoursehorse Oct 6, 2023
7033a90
rework actions
thenoursehorse Oct 6, 2023
8e3b2dd
fix github actions
thenoursehorse Oct 6, 2023
5707ff8
add shells
thenoursehorse Oct 6, 2023
b1e33b8
add branding
thenoursehorse Oct 6, 2023
31a5340
remove python3 in install
thenoursehorse Oct 6, 2023
58cd0ad
rework todo list
thenoursehorse Oct 6, 2023
69a9138
remove intersphinx_disabled_reftypes
thenoursehorse Oct 6, 2023
2e0bb6a
update todo
thenoursehorse Oct 6, 2023
db5cd62
Merge branch 'main' into unstable
thenoursehorse Oct 6, 2023
3b4ddbd
add checkout
thenoursehorse Oct 6, 2023
54fa91f
add todo
thenoursehorse Oct 6, 2023
ae7c5a5
change default cc,cxx to gcc
thenoursehorse Oct 6, 2023
d71779f
move triqs install env variable outside of cache
thenoursehorse Oct 6, 2023
4890712
change fallback version
thenoursehorse Oct 7, 2023
b4cb94c
add to wip todo
thenoursehorse Oct 7, 2023
a49fc66
add to todo
thenoursehorse Oct 7, 2023
bc3407c
introduce set_h_int
thenoursehorse Oct 7, 2023
35c245e
add to todo
thenoursehorse Oct 7, 2023
bd80922
finished hubbard tutorial
thenoursehorse Oct 7, 2023
32f4759
move to finished in todo list
thenoursehorse Oct 7, 2023
8ae7879
Merge branch 'main' into unstable
thenoursehorse Oct 7, 2023
649bd88
make docs only trigger on main
thenoursehorse Oct 7, 2023
b218bd5
remove on pull request
thenoursehorse Oct 7, 2023
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
9 changes: 5 additions & 4 deletions .github/actions/setup-triqs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ inputs:
default: "3.10"
required: false
cc:
default: "clang"
default: "gcc"
required: false
cxx:
default: "clang++"
default: "g++"
required: false
llvm:
default: "15"
Expand Down Expand Up @@ -120,11 +120,12 @@ runs:
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/triqs_install -DBuild_Documentation=OFF -DBuild_Tests=OFF
make -j1 VERBOSE=1
cd ../../
echo "TRIQS_INSTALL=$HOME/triqs_install" >> $GITHUB_ENV

- name: Install TRIQS
shell: bash
run: cd triqs/build && make install && cd ../../
run: |
cd triqs/build && make install && cd ../../
echo "TRIQS_INSTALL=$HOME/triqs_install" >> $GITHUB_ENV

branding:
icon: "package"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Docs

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
Expand Down
9 changes: 7 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@ version 3.2.0
- Helper plot functions
- Helper functions for calculating free/total energy
- add linting actions
- pipy packaging
- dimer insulator to explain some different insulating states
- change references in docs to use sphinxcontrib-bibtex


### In Progress

- symmetry representation tutorial
- Kagome/projectors tutorial
- single-orbital Hubbard tutorial
- Finish TBmodels in tight-binding how-to
- Sort out cross-referencing to API in docs
- action for hatchling version bump

### Done ✓
- Setup github actions
- Setup github actions
- single-orbital Hubbard tutorial
15 changes: 13 additions & 2 deletions docs/how-to/embedding.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bit about how they do things.
[About the embedding Hamiltonian](../explanations/embedding.md).
:::

## :py:class:`EmbeddingAtomDiag`
## `EmbeddingAtomDiag`

First a `gf_struct` object has to be created that describes the correlated
subspace $\mathcal{C}_i$. This object should be constructed in the same way
Expand Down Expand Up @@ -81,6 +81,17 @@ where `h0_loc_matrix` is a matrix that describes the couplings, with the same
block matrix structure as `Lambda_c` and `D`. This is stored in
`embedding.h0_loc` as a {{TRIQS}} operator.

### Setting `h_int`

If you want to update the interaction terms on the impurity

```python
# A new h_int
h_int = ...

embedding.set_h_int(h_int)
```

### Solving

It is solved as
Expand Down Expand Up @@ -144,7 +155,7 @@ embedding.gf_struct_emb
```


## :py:class:`EmbeddingDummy`
## `EmbeddingDummy`

If you want to have some correlated subspaces $\mathcal{C}_i$ as inequivalent,
but they are related by some symmetry, it is not necessary to solve for the
Expand Down
Loading