cirKITers / cirKITers/qml-essentials
[FR] Add 'positive_only' flag to coefficients
- Dominant language
- Python
- Stars
- 7
- Forks
- 5
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 4
Description
**Is your feature request related to a problem? Please describe.**
Often only the positive part of the spectrum is required (because its symmetric anyway)
**Describe the solution you'd like**
Add a flag `postive_only` to `sample_coefficients` method in `Coefficients` class which causes the returned value only containing the right halve of the array including the zero coefficient.
**Describe alternatives you've considered**
N/A
**Additional context**
N/A
Contributor guide
Research direction
Locate the Coefficients class and its sample_coefficients method, then inspect how the coefficient array is assembled and how its zero coefficient is represented. Implement the requested positive-only option so the returned array contains the right half including zero, and verify the existing behavior remains unchanged when the flag is not used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100