QuantumInstance is created to mimic the real backend by using QasmSimulator.from_backend method. It, however, raise "TypeError: result() got an unexpected keyword argument 'wait'" when executed.
Steps to reproduce the problem
from qiskit.aqua.quantum_instance import QuantumInstance
from qiskit.providers.aer import QasmSimulator
from qiskit.circuit import QuantumCircuit
from qiskit import IBMQ
IBMQ.load_account()
provider = IBMQ.providers()[0]
backend = provider.get_backend('ibmq_santiago')
quantum_instance = QuantumInstance(backend=QasmSimulator.from_backend(backend), shots=2**10, seed_simulator=None, seed_transpiler=0, optimization_level=3)
qc = QuantumCircuit(5)
qc.h(0)
qc.cx(0,1)
qc.cx(1,2)
qc.measure_active()
quantum_instance.execute(qc)
Stderr:
TypeError: result() got an unexpected keyword argument 'wait'
Information
What is the current behavior?
QuantumInstance is created to mimic the real backend by using QasmSimulator.from_backend method. It, however, raise "TypeError: result() got an unexpected keyword argument 'wait'" when executed.
Steps to reproduce the problem
Stderr:
What is the expected behavior?
It should return
Qobj
Suggested solutions
Temporally,
But please fix this problem on the master branch.