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

Implement toy problem that shows how to use python-constraints #266

Closed
Tracked by #219
grayson-helmholz opened this issue May 7, 2024 · 2 comments
Closed
Tracked by #219
Assignees
Labels
📋 Task Task for the to-do list

Comments

@grayson-helmholz
Copy link
Collaborator

grayson-helmholz commented May 7, 2024

General proposal description:

A possible toy-problem is the generation of Configuration State Functions (CSF's) from Slater-Determinants which are known from Quantum Chemistry. The former form a basis for Many-Electron-Wavefunctions (MEW's) which also obey the same quantum number constraints as the MEW (primarily occupation number, spin-magnitude and spin-projection).

For this problem no actual molecular orbitals and thus no explicit Slater-Determinants are needed. It suffices to treat the latter just as a Occupation-Number-Vector (ONV) of the different spin-orbitals (ordered by energy).

Procedure:

  • Take the Hartree-Fock ground state (for example: |11110000> <-> 4 electrons).
  • Generate the "excited" Slater-Determinants ( |11101000>, |11100100>, ....).
  • Select the constraints for the MEW (ON, S², S_z).
  • Find with python-constraints all CSF's which satisfy the same constraints.

Possible additions:

  • If a simple ONV-like formulation of the point-group representations of the orbitals can be found,
    then spatial symmetry constraints can be added, which would show how extensible & reducible the implementation can be (see main-issue).
@grayson-helmholz grayson-helmholz self-assigned this May 7, 2024
@grayson-helmholz grayson-helmholz changed the title [1] Write CSP example with python-constraints library only (not necessarily QM), to understand the core of qrules.solvers Implement a toy problem with python-constraints to show how to use this library & possibly how to get an extensible implementation May 7, 2024
@redeboer
Copy link
Member

redeboer commented May 7, 2024

Sounds like a nice example, the challenge will be to formulate this problem as CSP and to see how this translates to the python-constraints2 package (incidentally, this also goes into the direction #261).

I'm fine with investigating this in the form of a Python script. Once a solution is worked out, it would be nice to document it in compwa.github.io/reports.

@grayson-helmholz grayson-helmholz changed the title Implement a toy problem with python-constraints to show how to use this library & possibly how to get an extensible implementation [1] Implement a toy problem with python-constraints to show how to use this library & possibly how to get an extensible implementation May 7, 2024
@redeboer redeboer changed the title [1] Implement a toy problem with python-constraints to show how to use this library & possibly how to get an extensible implementation Implement toy problem that shows how to use python-constraints May 7, 2024
@redeboer redeboer added the 📋 Task Task for the to-do list label Jun 26, 2024
@redeboer
Copy link
Member

Summary of yesterday's meeting: putting this issue on hold for now in favour of #272.
The worry is that the translation between CSFs and MEWs and then to CSP requires too much effort considering it is more of an exercise to become familiar with CSP and the python-constraints API.

@redeboer redeboer closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📋 Task Task for the to-do list
Projects
None yet
Development

No branches or pull requests

2 participants