-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand string initializations #177
Comments
I'll work on implementing this. I'm new to OpenFermion and would like to get familiar with the code. |
I had this issue in mind while completing #194 so I did it in a way that made this task easy to incorporate. Basically you just fill in the body of |
Yes that makes sense to me. I have written some code for long string initialization in FermionOperator that I can move into |
Great. Keep in mind that the task now is basically to reverse-engineer the |
Closed by #201 |
|
Also, it seems to always assume numbers are complex, for instance |
Also, I am not sure how one is supposed to provide complex coefficients. |
Yes I'll fix these issues shortly. Evidently, the |
Thanks Max! I think we should try to be flexible with respect to the white space. |
…quantumlib#201) * Implemented long string initialization and tests for SymbolicOperator (quantumlib#177) * Added support for complex coefficients in SymbolicOperator long string initialization * Refactored SymbolicOperator._long_string_init * Updated author list * Update NOTICE * Update README.rst
As discussed in #122 it would be helpful if sums of FermionOperators and QubitOperators could be initialized from their string representation so that
my_fermion_operator - FermionOperator(str(my_fermion_operator)) = 0 and
my_qubit_operator - QubitOperator(str(qubit_operator)) = 0.
This should be easy for a beginner to implement.
The text was updated successfully, but these errors were encountered: