Skip to content

Commit

Permalink
spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
bettinaheim committed Nov 28, 2023
1 parent ee08d5b commit 520f0cb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/config/spellcheck_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ matrix:
# Ignore content between inline backticks
- open: '(?P<open>`+)'
close: '(?P=open)'
# Ignore words between two colons, e.g. :class:
- open: '(^|\s):'
close: ':(\s|$)'
content: '[A-Za-z_-]*?'
# Ignore words that start with uppercase letters or an underscore
- open: '(^|\s)([A-Z]|_)'
close: '($|\s|-)'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/config/spelling_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ parallelization
precompute
precomputed
prepend
programmatically
quantize
quantized
qubit
Expand Down
22 changes: 11 additions & 11 deletions runtime/common/BaseRemoteRESTQPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ class BaseRemoteRESTQPU : public cudaq::QPU {
/// The number of shots
std::optional<int> nShots;

/// @brief the platform file path, CUDAQ_INSTALL/platforms
/// @brief the platform file path
std::filesystem::path platformPath;

/// @brief The Pass pipeline string, configured by the
/// QPU config file in the platform path.
/// QPU configuration file in the platform path.
std::string passPipelineConfig = "canonicalize";

/// @brief The name of the QPU being targeted
std::string qpuName;

/// @brief Name of codegen translation (e.g. "qir-adaptive", "qir-base",
/// "qasm2", "iqm")
/// @brief Name of code generation target (e.g. `qir-adaptive`, `qir-base`,
/// `qasm2`, `iqm`)
std::string codegenTranslation = "";

/// @brief Additional passes to run after the codegen-specific passes
Expand All @@ -93,12 +93,12 @@ class BaseRemoteRESTQPU : public cudaq::QPU {

/// @brief Flag indicating whether we should perform the passes in a
/// single-threaded environment, useful for debug. Similar to
/// -mlir-disable-threading for cudaq-opt.
/// `-mlir-disable-threading` for `cudaq-opt`.
bool disableMLIRthreading = false;

/// @brief Flag indicating whether we should enable MLIR printing before and
/// after each pass. This is similar to (-mlir-print-ir-before-all and
/// -mlir-print-ir-after-all) in cudaq-opt.
/// after each pass. This is similar to `-mlir-print-ir-before-all` and
/// `-mlir-print-ir-after-all` in `cudaq-opt`.
bool enablePrintMLIREachPass = false;

/// @brief If we are emulating locally, keep track
Expand Down Expand Up @@ -246,7 +246,7 @@ class BaseRemoteRESTQPU : public cudaq::QPU {
disableMLIRthreading = true;
}

/// Once we know the backend, we should search for the config file
/// Once we know the backend, we should search for the configuration file
/// from there we can get the URL/PORT and the required MLIR pass
/// pipeline.
std::string fileName = mutableBackend + std::string(".config");
Expand Down Expand Up @@ -341,8 +341,8 @@ class BaseRemoteRESTQPU : public cudaq::QPU {

/// @brief Extract the Quake representation for the given kernel name and
/// lower it to the code format required for the specific backend. The
/// lowering process is controllable via the platforms/BACKEND.config file for
/// this targeted backend.
/// lowering process is controllable via the configuration file in the
/// platform directory for the targeted backend.
std::vector<cudaq::KernelExecution>
lowerQuakeCode(const std::string &kernelName, void *kernelArgs) {

Expand Down Expand Up @@ -478,7 +478,7 @@ class BaseRemoteRESTQPU : public cudaq::QPU {

/// @brief Launch the kernel. Extract the Quake code and lower to
/// the representation required by the targeted backend. Handle all pertinent
/// modifications for the execution context as well as async or sync
/// modifications for the execution context as well as asynchronous or synchronous
/// invocation.
void launchKernel(const std::string &kernelName, void (*kernelFunc)(void *),
void *args, std::uint64_t voidStarSize,
Expand Down

0 comments on commit 520f0cb

Please sign in to comment.