2
$\begingroup$

Is it possible to automatically transform a quantum circuit, created in Wolfram's Mathematica (through the QuantumFramework package) into a qiskit code? What I thought of would be a package function that turns the circuit created through the function QuantumCircuitOperator into a python code that creates the corresponding circuit in qiskit.

$\endgroup$

1 Answer 1

3
$\begingroup$

There is no Python code generation for Qiskit circuits yet. The best you can do is to make Qiskit's QuantumCircuit in the ExternalEvaluate session and use it as you would use it in any Python environment, save it, serialize it, convert it to QASM, etc.

Here I've written a small overview of the current Qiskit integration in the QuantumFramework: https://www.wolframcloud.com/obj/nikm/Published/QiskitConversion.nb

$\endgroup$
1
  • 1
    $\begingroup$ Yes. OpenQASM is the most extended language for interoperability among frameworks $\endgroup$
    – luciano
    Aug 28, 2022 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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