import qiskit
import qiskit_superstaq

provider = qiskit_superstaq.superstaq_provider.SuperstaQProvider("YOUR API KEY")

circuit1 = qiskit.QuantumCircuit(8)
for i in range(4, 8):
    circuit1.h(i)
circuit1.draw(fold=-1)

compiler_output = provider.aqt_compile(circuit1)

print(compiler_output.circuit)

compiler_output.seq.plot(element=0)

circuit2 = qiskit.QuantumCircuit(8)
circuit2.swap(4, 5)
circuit2.h(6)
circuit2.draw(fold=-1)

compiler_output = provider.aqt_compile([circuit1, circuit2])

print(compiler_output.circuits[0])
print()
print(compiler_output.circuits[1])

compiler_output.seq.plot(element=0)

compiler_output.seq.plot(element=1)