2
$\begingroup$

I can't seem to find anything, but this seems like something that should be possible.

$\endgroup$
2
$\begingroup$

You can convert a qiskit circuit to QASM using circuit.qasm(). You can copy this and then there's an "Import OpenQASM" button on the initial circuit composer page:

enter image description here

and you can paste the QASM into a tab of the composer itself:

enter image description here

$\endgroup$
  • 1
    $\begingroup$ I am a little bit confused. I think that the question was on code in Qiskit, not QASM. $\endgroup$ – Martin Vesely Dec 3 at 6:19
  • 2
    $\begingroup$ IBM Q Experience circuit composer takes OpenQASM code, not Qiskit code. $\endgroup$ – Huang Junye Dec 3 at 11:33
  • $\begingroup$ Thank you, this is exactly what I was looking for! For anyone trying it, you have to do print(circuit.qasm()) if you want to be able to copy paste into the circuit editor. $\endgroup$ – ejw_art Dec 3 at 19:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.