Skip to content

Commit

Permalink
mapping-file --> mapping_file
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhowe23 committed Jan 11, 2024
1 parent 7ce6eff commit 49d800a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/tests/backends/test_IQM.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def startUpMockServer():
url="http://localhost:{}".format(port),
**{
"qpu-architecture": "Apollo",
"mapping-file": f"{git_top}/test/Supplemental/Apollo Variant.txt"
"mapping_file": f"{git_top}/test/Supplemental/Apollo Variant.txt"
})

yield "Running the tests."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ void IQMServerHelper::updatePassPipeline(
// Note: the leading and trailing single quotes are needed in case there are
// spaces in the filename.
std::string pathToFile;
auto iter = backendConfig.find("mapping-file");
auto iter = backendConfig.find("mapping_file");
if (iter != backendConfig.end()) {
// Use provided path to file
pathToFile = std::string("'") + iter->second + std::string("'");
Expand Down
2 changes: 1 addition & 1 deletion test/NVQPP/mapping_test-1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// RUN: nvq++ -v %s -o %t --target oqc --emulate && CUDAQ_DUMP_JIT_IR=1 %t |& FileCheck %s
// RUN: nvq++ -std=c++17 --enable-mlir %s -o %t
// RUN: nvq++ %s -o %t --target iqm --iqm-machine Adonis --mapping-file "%p/../Supplemental/Adonis Variant.txt" --emulate && %t
// RUN: nvq++ %s -o %t --target iqm --iqm-machine Adonis --mapping_file "%p/../Supplemental/Adonis Variant.txt" --emulate && %t

#include <cudaq.h>
#include <iostream>
Expand Down
6 changes: 3 additions & 3 deletions tools/nvqpp/nvq++.in
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function show_help {
--load=<domain>
Load the domain-specific library, e.g. chemistry.
--mapping-file <path/to/file>
--mapping_file <path/to/file>
Use the specified topology file during mapping (if mapping is needed).
--[no-]device-code-loading
Expand Down Expand Up @@ -390,7 +390,7 @@ while [ $# -ne 0 ]; do
--disable-qubit-mapping | -disable-qubit-mapping)
DISABLE_QUBIT_MAPPING=true
;;
--mapping-file)
--mapping_file)
MAPPING_FILE="base64_"$(echo -n $2 | base64 --wrap=0)
shift
;;
Expand Down Expand Up @@ -592,7 +592,7 @@ if [ -n "${TARGET_CONFIG}" ]; then
TARGET_CONFIG="${TARGET_CONFIG};emulate;${CUDAQ_EMULATE_REMOTE}"
TARGET_CONFIG="${TARGET_CONFIG};disable_qubit_mapping;${DISABLE_QUBIT_MAPPING}"
if [ -n "${MAPPING_FILE}" ]; then
TARGET_CONFIG="${TARGET_CONFIG};mapping-file;${MAPPING_FILE}"
TARGET_CONFIG="${TARGET_CONFIG};mapping_file;${MAPPING_FILE}"
fi
TARGET_CONFIG="${TARGET_CONFIG}${PLATFORM_EXTRA_ARGS}"
OUTFILENAME=$(mktemp nvqppGenTargetBackend.XXXXXX.o)
Expand Down

0 comments on commit 49d800a

Please sign in to comment.