Skip to content

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

@yangjy0826

Description

@yangjy0826

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions