Skip to content

Deprecated way of setting options #6

@Ye2018

Description

@Ye2018

For the snippet:

# Set the backend options, method set to statevector
options = {'method': 'statevector', 'memory':True, 'shots':10}

, putting options in a dictionary doesn't work anymore.
It should be:

#options = {'method': 'statevector', 'memory': True, 'shots': 10}
options = {"method": "statevector"}
# Execute circuit using the backend options created
job = execute(qc, backend_simulator, backend_options=options, memory=True, shots=10)

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