Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
fix: Azure IonQ circuit creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Wagner committed Mar 25, 2024
1 parent b57d42b commit c5b13fc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions planqk/qiskit/providers/job_input_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@

from braket.circuits import Circuit
from braket.circuits.circuit_helpers import validate_circuit_and_shots
from qiskit import QuantumCircuit
from qiskit.providers import Options
from qiskit_braket_provider.providers.adapter import to_braket
from qiskit_ibm_runtime import RuntimeEncoder
from qiskit_ionq.helpers import qiskit_circ_to_ionq_circ

from planqk.qiskit.backend import PlanqkBackend
from planqk.qiskit.client.backend_dtos import PROVIDER
from planqk.qiskit.client.job_dtos import INPUT_FORMAT
from planqk.qiskit.providers.aws_converters import transform_to_qasm_3_program
from planqk.qiskit.providers.qryd.qryd_converters import convert_to_wire_format, create_qoqu_input_params
from qiskit import QuantumCircuit
from qiskit.providers import Options
from qiskit_braket_provider.providers.adapter import to_braket
from qiskit_ibm_runtime import RuntimeEncoder
from qiskit_ionq.helpers import qiskit_circ_to_ionq_circ


def _convert_to_open_qasm_3(circuit: QuantumCircuit, backend: PlanqkBackend, options: Options):
Expand All @@ -29,7 +28,7 @@ def _convert_to_open_qasm_3(circuit: QuantumCircuit, backend: PlanqkBackend, opt
return transform_to_qasm_3_program(braket_circuit, False, inputs)


def _convert_to_ionq(circuit: QuantumCircuit, options: Options):
def _convert_to_ionq(circuit: QuantumCircuit, backend: PlanqkBackend, options: Options):
gateset = options.get("gateset", "qis")
ionq_circ, _, _ = qiskit_circ_to_ionq_circ(circuit, gateset=gateset)
return {
Expand Down

0 comments on commit c5b13fc

Please sign in to comment.