OpenFermion icon indicating copy to clipboard operation
OpenFermion copied to clipboard

Are there any plans to support symbolic coefficients for QubitOperator?

Open andrewprojansky opened this issue 7 months ago • 3 comments

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.

andrewprojansky avatar May 29 '25 19:05 andrewprojansky

@andrewprojansky Thank you for your question and offer. If you are still interested and able to work on this, we would be happy to assign it to you. Please let us know.

mhucka avatar Aug 28 '25 03:08 mhucka

@andrewprojansky Very gentle ping …

mhucka avatar Oct 21 '25 18:10 mhucka

Hi! Apologies for only seeing this now, happy to take a serious look into it.

andrewprojansky avatar Nov 05 '25 22:11 andrewprojansky