Are there any plans to support symbolic coefficients for QubitOperator?

Open
#1,053 8 comments 0 reactions 1 assignee View on GitHub

@anishbhujbal7 is already working on this.

Since Sep 1, 2026.

  • #1452 by @anishbhujbal7 — open

Assessment

This issue has not been assessed yet.

Description

a: functionality s: awaiting-response

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

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.

More from quantumlib/OpenFermion

All issues in quantumlib/OpenFermion

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.