Closed willzeng closed 7 years ago
@willzeng - with my rewrite of the server the encoding is working again. The way this is implemented in PyQuil though is as follows:
...
res = cxn.wavefunction(Program(X(0)))
# decode the wavefunction
(wfxn, classical) = res.decode()
print(wfxn.get_outcome_probs())
Yep that is working. It is likely to be a bit of a confusion point for users that res.get()
shows a different encoding and res.decode() needs to be run, but we can deal with that separately.
Running a wavefunction command on a JobConnection object gets a result that looks like the byte information hasn't been properly decoded:
This is on pyquil's current master branch.