theochem / theochem/PyCI

Dealing with Spin

Open
#106 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue help wanted
Dominant language
C++
Stars
35
Forks
15
PR merge metrics
No merged PRs in 30d

Description

We need to be able to compute S^2 in PyCI, as determinant-based calculations are not naturally/automatically eigenfunctions of S^2.

We could use ModelHamiltonian to make the S^2 operator (it would be linked to issue #150 there) or we could just code it directly here, which might be more direct. The easiest way to do it, I think, is to use the formula in terms of the raising and lowering operators:

$$
\hat{S}^2 = \tfrac{1}{2} (\hat{S}{+} \hat{S}{-} + \hat{S}{-} \hat{S}{+} ) + S_z^2
$$

We could also implement a spin-purification/projection method to try to get a non-spin-pure eigenfunction a bit closer to a spin eigenstate.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the proposed ModelHamiltonian integration, linked issue #150 there, with implementing the S^2 operator directly in PyCI. Review the raising/lowering-operator formula in the issue and determine whether spin purification or projection is also in scope. Done means PyCI can compute S^2 and the agreed spin-purification behavior is defined and implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.