rigetti / pyquil

A Python library for quantum programming using Quil.
http://docs.rigetti.com
Apache License 2.0
1.4k stars 341 forks source link

JobResult is_done should also query for an update #86

Closed willzeng closed 7 years ago

willzeng commented 7 years ago

Right now the .is_done() method on a jobresult doesn't query for an update. This means to see if a job is done you need to run:

while not res.is_done():
    res.get()
    time.sleep(0.5)

It makes sense to me that an improvement would be to have is_done() query for status itself.

while not res.is_done():
    time.sleep(0.5)
richardzhu commented 7 years ago

working on it

richardzhu commented 7 years ago

commit on my fork of pyquil

willzeng commented 7 years ago

closed by #87