ITADN

print_settings() does not print available string options except default

#473Openrainli323 创建于 2026-05-07
questiontriage
R
rainli323commented
**Describe the bug** When running `print_settings` with many methods, many settings do not print allowed strings, for example `print_settings("orbital_localizer", "pyscf_multi")` tells you the default is `pipek-mezey`, but does not advice `Edmiston-Ruedenberg` or `Foster-Boys`, `print_settings("scf_solver", "qdk")` tells you the default for `method` is `hf`, but does not mention eg. `B3LYP`. Similar problems exist throughout the software, though not for all setting keys. (Eg . `print_settings("state_prep", "sparse_isometry_gf2x")` is fine.) **To Reproduce** Steps to reproduce the behavior: 1. Install qdk-chemistry via `pip install 'qdk-chemistry[plugins, qiskit-extras, jupyter]'` 2. from qdk_chemistry.algorithms import print_settings 3. print_settings("orbital_localizer", "pyscf_multi") 4. See error **Expected behavior** I expect Value to be the default, and Allowed to show other options, in this example, `Edmiston-Ruedenberg` and `Foster-Boys` which do exist for "orbital_localizer", "pyscf_multi". **Screenshots** |Key | Value | Allowed | Description | |-------------------|--------------|-------------------|--------------| |method | "pipek-mezey" | - | -| |occupation_threshold | 1.00e-10 | - | -| |population_method | "mulliken" | - | -| **System (please complete the following information):** - OS: WSL2 on Win64 - System: x64 - Code Version: qdk-chemitry 1.1.0
0 条评论