qiskit1.0.0以上版本中execute模块弃用,改为transpile
·
如下
new_circuit = transpile(circuit, backend) job = backend.run(new_circuit)
# Current import path from qiskit import execute job = execute(circuit, backend) # Replace that line with this new path from qiskit import transpile # And this is how you use transpile and run new_circuit = transpile(circuit, backend) job = backend.run(new_circuit)
更多推荐
所有评论(0)