I can found many qasm examples. How can I run them on different IBMQ devices?
This is a example for loading QASM, executing and displaying the result.
from qiskit import QuantumCircuit, Aer, execute qasm_str = """OPENQASM 2.0; include "qelib1.inc"; qreg q; creg c; h q; cx q,q; measure q -> c; """ # From str. qc = QuantumCircuit.from_qasm_str(qasm_str) # If you want to read from file, use instead # qc = QuantumCircuit.from_qasm_file("/path/to/file.qasm") # You can choose other backend also. backend = Aer.get_backend("qasm_simulator") # Execute the circuit and show the result. job = execute(qc, backend) result = job.result() print(result.get_counts())