Skip to content

Commit

Permalink
Fix incorrect warning for IonQ command line parameters (#1173)
Browse files Browse the repository at this point in the history
Base64 encoding was incorrectly triggering a warning. This change fixes
that by performing base64 decoding on the appropriate command-line
parameters.
  • Loading branch information
bmhowe23 committed Feb 6, 2024
1 parent 48229d4 commit e643b10
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion runtime/cudaq/platform/default/rest/helpers/ionq/ionq.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ============================================================================ #
# Copyright (c) 2022 - 2023 NVIDIA Corporation & Affiliates. #
# Copyright (c) 2022 - 2024 NVIDIA Corporation & Affiliates. #
# All rights reserved. #
# #
# This source code and the accompanying materials are made available under #
Expand Down Expand Up @@ -44,10 +44,16 @@ while [ $# -gt 1 ]; do
--ionq-machine)
PLATFORM_EXTRA_ARGS="$PLATFORM_EXTRA_ARGS;qpu;$2"
IONQ_MACHINE="$2"
if [ "${IONQ_MACHINE:0:7}" == "base64_" ]; then
IONQ_MACHINE=$(echo ${2#base64_} | base64 -d)
fi
;;
--ionq-noise-model)
PLATFORM_EXTRA_ARGS="$PLATFORM_EXTRA_ARGS;noise;$2"
IONQ_NOISE_MODEL="$2"
if [ "${IONQ_NOISE_MODEL:0:7}" == "base64_" ]; then
IONQ_NOISE_MODEL=$(echo ${2#base64_} | base64 -d)
fi
;;
--ionq-debias)
PLATFORM_EXTRA_ARGS="$PLATFORM_EXTRA_ARGS;debias;$2"
Expand Down

0 comments on commit e643b10

Please sign in to comment.