rigetti / grove

Quantum algorithms built using pyQuil.
http://rigetti.com/forest
Apache License 2.0
375 stars 123 forks source link

'QVMConnection' object has no attribute 'run_and_measure_async' #206

Open yangjy0826 opened 5 years ago

yangjy0826 commented 5 years ago

Hi,

I am try to run this tomography example on my laptop. I think I have finished the implementation successfully, because when I import the packages by:

from grove.tomography.state_tomography import do_state_tomography
from grove.tomography.utils import notebook_mode
from grove.tomography.process_tomography import do_process_tomography

no error occurs. But when I try to run this part:

%%time
print("Running state tomography on the QVM for reference...")
state_tomography_qvm, _, _ = do_state_tomography(p, NUM_SAMPLES, qvm, qubits)
print("State tomography completed.")

An error occurs, showing that: AttributeError: 'QVMConnection' object has no attribute 'run_and_measure_async'.

Could you please tell me how can I solve this problem? Thank you!