Skip to content

Commit

Permalink
Review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
schweitzpgi committed Sep 13, 2023
1 parent 791b3ba commit ccaa00b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
10 changes: 6 additions & 4 deletions runtime/cudaq/platform/default/rest/helpers/ionq/ionq.config
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,22 @@ IONQ_MACHINE="simulator"
IONQ_NOISE_MODEL=""

PLATFORM_EXTRA_ARGS=""
while [ $# -ne 0 ]; do
# NB: extra arguments always take the form:
# --<target>-<option> <value>
# as in
# --ionq-machine foo
while [ $# -gt 0 ]; do
case "$1" in
--ionq-machine)
PLATFORM_EXTRA_ARGS="$PLATFORM_EXTRA_ARGS;qpu;$2"
IONQ_MACHINE="$2"
shift
;;
--ionq-noise-model)
PLATFORM_EXTRA_ARGS="$PLATFORM_EXTRA_ARGS;noise;$2"
IONQ_NOISE_MODEL="$2"
shift
;;
esac
shift
shift 2
done

# Validate the settings
Expand Down
10 changes: 6 additions & 4 deletions runtime/cudaq/platform/default/rest/helpers/iqm/iqm.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,18 @@ CODEGEN_EMISSION=iqm
LIBRARY_MODE=false

PLATFORM_EXTRA_ARGS=""
while [ $# -ne 0 ]; do
# NB: extra arguments always take the form:
# --<target>-<option> <value>
# as in
# --iqm-machine foo
while [ $# -gt 0 ]; do
case "$1" in
--iqm-server-url)
PLATFORM_EXTRA_ARGS="$PLATFORM_EXTRA_ARGS;url;$2"
shift
;;
--iqm-machine)
PLATFORM_EXTRA_ARGS="$PLATFORM_EXTRA_ARGS;qpu-architecture;$2"
shift
;;
esac
shift
shift 2
done
5 changes: 5 additions & 0 deletions runtime/cudaq/platform/default/rest/helpers/oqc/oqc.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ CODEGEN_EMISSION=qir
# and it is the default, physical backends must
# turn this off
LIBRARY_MODE=false

# NB: extra arguments always take the form:
# --<target>-<option> <value>
# as in
# --oqc-machine foo
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,18 @@ CODEGEN_EMISSION=qir
LIBRARY_MODE=false

PLATFORM_EXTRA_ARGS=""
while [ $# -ne 0 ]; do
# NB: extra arguments always take the form:
# --<target>-<option> <value>
# as in
# --quantinuum-machine foo
while [ $# -gt 0 ]; do
case "$1" in
--quantinuum-url)
PLATFORM_EXTRA_ARGS="$PLATFORM_EXTRA_ARGS;url;$2"
shift
;;
--quantinuum-machine)
PLATFORM_EXTRA_ARGS="$PLATFORM_EXTRA_ARGS;machine;$2"
shift
;;
esac
shift
shift 2
done

0 comments on commit ccaa00b

Please sign in to comment.