Support negative spin projections in make_hartree_fock_occupation
Maintainers usually reply within 8 days
@Schrodingerscat07 is already working on this.
Since Nov 14, 2026.
- #106 by @Schrodingerscat07 — open
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- quantum-computing
Research direction
Start at stateprep.make_hartree_fock_occupation, the function named in the example, and inspect its input validation and occupation convention. Reproduce the call with spin=-1; done means it returns [1] for this input while preserving the stated interleaved alpha/beta convention.
Written by the indexing model from the issue text.
Description
Versions: cudaq-algorithms==0.1.0, cudaq==0.16.0
from cudaq_algorithms import stateprep
stateprep.make_hartree_fock_occupation(2, 1, spin=-1)
Actual error:
ValueError: spin must be a non-negative integer
Requested behavior: support signed spin = N_alpha - N_beta, consistent with PySCF. This input represents one beta electron and should return [1] under the interleaved alpha/beta convention.
- Dominant language
- Python
- Stars
- 19
- Forks
- 18
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 14
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NVIDIA/cudaq-algorithms
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/cudaq-algorithms#110 ·
Maintainers usually reply within 8 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
NVIDIA/cudaq-algorithms#76 ·
Maintainers usually reply within 8 days
-
`PauliLCU` accepts zero-width Pauli words (and target-free scalar `SpinOperator`s) and builds a `num_system = 0` encodingMay be free again @kubuyuk claimed this 11 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
NVIDIA/cudaq-algorithms#58 · 1 comment ·
Maintainers usually reply within 8 days
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
NVIDIA/cudaq-algorithms#108 ·
Maintainers usually reply within 8 days
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
NVIDIA/cudaq-algorithms#107 ·
Maintainers usually reply within 8 days
All issues in NVIDIA/cudaq-algorithms
Similar issues
-
auto-reported bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
stix-atlas.json: the same relationship id is used for several different mitigates relationshipsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
backend bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
nolte/kamerplanter#3193 ·
Maintainers usually reply within 1 day
-
soup prune-prompt exits 1 after writing its output on a file over 100,000 rows, and reports a capped row count otherwisePossibly taken @abdulwaarith0 claimed this today. Openneeds-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MakazhanAlpamys/Soup#3690 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day