Are there any plans to support symbolic coefficients for QubitOperator?
Assessment
This issue has not been assessed yet.
Description
Hey all,
a bit curious as to if anyone has worked on adding support for symbolic coefficients for QubitOperator. I imagine a very simple use case would be in defining coefficient dependant Hamiltonians such as
from sympy import Symbol from openfermion.ops import QubitOperator x = Symbol('x') hamiltonian = x * QubitOperator('X0 X5') + 0.3 * QubitOperator('Z0')
Is there any planned support for this currently? If not, happy to try to work on it.
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 438
- PR merge metrics
- No merged PRs in 30d
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 quantumlib/OpenFermion
-
PhaseFitEstimator cannot fit the signal from its own reduced sampling gridPossibly taken @madcpf claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
quantumlib/OpenFermion#1479 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
quantumlib/OpenFermion#1478 ·
-
Switch to Pyrefly for type checking instead of mypyPossibly taken @rosspeili claimed this 133 days ago. Opena: health a: python e: experienced
quantumlib/OpenFermion#1399 · 6 comments · 1 assignee ·
-
Add a CODEOWNERS fileMay be free again @mhucka claimed this 159 days ago, and no pull request is open. Opena: devops e: maintainer
quantumlib/OpenFermion#1337 · 3 comments · 1 assignee ·
-
Add workflow to run create-env-files.sh when Dependabot changes dependenciesPossibly taken @rosspeili claimed this 142 days ago. Opena: devops e: experienced
quantumlib/OpenFermion#1332 · 4 comments · 1 assignee ·
All issues in quantumlib/OpenFermion
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