Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions azure-quantum/azure/quantum/qiskit/backends/ionq.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ def run(self, circuit, **kwargs):
"""Submits the given circuit to run on an IonQ target."""
# If the circuit was created using qiskit.assemble,
# disassemble into QASM here

if isinstance(circuit, (list, tuple)):
if len(circuit) > 1:
raise NotImplementedError("Multi-experiment jobs are not supported!")
circuit = circuit[0]

Comment thread
jplewa marked this conversation as resolved.
if isinstance(circuit, QasmQobj) or isinstance(circuit, Qobj):
from qiskit.assembler import disassemble
circuits, run, _ = disassemble(circuit)
Expand Down
Loading