如下

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)
Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐