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

Commit

Permalink
Revert "fix: Invalid Qubit count for AWS circuits"
Browse files Browse the repository at this point in the history
This reverts commit 472df46.
  • Loading branch information
Sebastian Wagner committed Mar 6, 2024
1 parent 4d55d86 commit a1c4dd0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions planqk/qiskit/providers/job_input_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@

from braket.circuits import Circuit
from braket.circuits.circuit_helpers import validate_circuit_and_shots
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

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


def _convert_to_open_qasm_3(circuit: QuantumCircuit, options: Options):
shots = options.get("shots", 1)
Expand Down Expand Up @@ -51,7 +52,7 @@ def _create_qoqo_input_params(circuit: QuantumCircuit, options: Options):


def _create_aws_input_params(circuit: QuantumCircuit, options: Options):
return {'disable_qubit_rewiring': False}
return {'disable_qubit_rewiring': False, 'qubit_count': circuit.num_qubits}


def _create_empty_input_params(circuit: Circuit, options: Options):
Expand Down

0 comments on commit a1c4dd0

Please sign in to comment.