Skip to content

Commit 93f162d

Browse files
committed
Add electron number into group name for Hubbard model.
PR: USTC-KnowledgeComputingLab/qmb#47 Signed-off-by: Hao Zhang <[email protected]>
2 parents e782ca5 + 0a93507 commit 93f162d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qmb/hubbard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Model(ModelProto[ModelConfig]):
5858

5959
@classmethod
6060
def default_group_name(cls, config: ModelConfig) -> str:
61-
return f"Hubbard_{config.m}x{config.n}_t{config.t}_u{config.u}"
61+
return f"Hubbard_{config.m}x{config.n}_t{config.t}_u{config.u}_e{config.electron_number}"
6262

6363
@classmethod
6464
def _prepare_hamiltonian(cls, args: ModelConfig) -> dict[tuple[tuple[int, int], ...], complex]:

0 commit comments

Comments
 (0)