-
Notifications
You must be signed in to change notification settings - Fork 15
Deprecate encoding.offset
while incorporating it into encoding.qubit_op
#14
base: main
Are you sure you want to change the base?
Conversation
efece40
to
7c9a73a
Compare
There was some concern previously that storing the identity term within the operator might lead to additional quantum experiments being performed. However, I have convinced myself now that this is not the case, so I'd like to move forward with this PR. Here's why: Any reasonable implementation of an Estimator -- including the one in |
0.980 release did not make it to pypi, apparently.
Summary
Currently, the
encode()
method results in the operator being spanned across two properties: the traceless part is stored inqubit_op
, while the constant offset is stored inoffset
. The current separation follows the practice ofto_ising()
is Qiskit Optimization. However, this separation seems unnecessary. It conceptually simplifies things to store the operator entirely inqubit_op
, as this PR proposes.Details and comments
This will aid in solving #8 and with #9 (via the corresponding PR, #13).