qiboteam / qibo

A framework for quantum computing
https://qibo.science
Apache License 2.0
287 stars 58 forks source link

Conversion of circuits with Unitary gates to QASM not supported #1320

Open NithyasriVS opened 4 months ago

NithyasriVS commented 4 months ago

I'm trying to use to_qasm() to get the QASM representation of my trotter decomposition circuits but I'm running into an error: "Unitary is not supported by OpenQASM".

My circuits look like this:

ham = hamiltonians.XXZ(nqubits=5)
circuit = ham.circuit(dt=1e-4)

This stores the hamiltonian in the circuit as Unitary gates which is currently not supported by to_qasm() and is throwing the error.