Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Pisal <spisal@nvidia.com>
  • Loading branch information
sacpis committed Jan 8, 2025
1 parent 73ac498 commit 92c922f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/sphinx/targets/cpp/infleqtion.cpp
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// Compile and run with:
// ```
// nvq++ --target infleqtion infleqtion.cpp -o out.x && ./out.x
// nvq++ --target `infleqtion` `infleqtion`.cpp -o out.x && ./out.x
// ```
// This will submit the job to the ideal simulator for Infleqtion,
// `cq_sqale_simulator` (default). Alternatively, we can enable hardware noise
// model simulation by specifying `noise-sim` to the flag `--infleqtion-method`,
// e.g.,
// ```
// nvq++ --target infleqtion --infleqtion-machine cq_sqale_qpu
// --infleqtion-method noise-sim infleqtion.cpp -o out.x && ./out.x
// nvq++ --target `infleqtion` --`infleqtion`-machine `cq`_`sqale`_qpu
// --`infleqtion`-method noise-sim `infleqtion`.cpp -o out.x && ./out.x
// ```
// where "noise-sim" instructs Superstaq to perform a noisy emulation of the
// where "noise-sim" instructs `Superstaq` to perform a noisy emulation of the
// QPU. An ideal dry-run execution on the QPU may be performed by passing
// `dry-run` to the `--infleqtion-method` flag, e.g.,
// `dry-run` to the --`infleqtion`-method flag, e.g.,
// ```
// nvq++ --target infleqtion --infleqtion-machine cq_sqale_qpu
// --infleqtion-method dry-run infleqtion.cpp -o out.x && ./out.x
// nvq++ --target `infleqtion` --`infleqtion`-machine `cq`_`sqale`_qpu
// --`infleqtion`-method dry-run `infleqtion`.cpp -o out.x && ./out.x
// ```
// Note: If targeting ideal cloud simulation,
// `--infleqtion-machine cq_sqale_simulator` is optional since it is the
Expand All @@ -24,7 +24,7 @@
#include <cudaq.h>
#include <fstream>

// Define a simple quantum kernel to execute on Infleqtion backends.
// Define a simple quantum kernel to execute on `infleqtion` backends.
struct ghz {
// Maximally entangled state between 5 qubits.
auto operator()() __qpu__ {
Expand Down

0 comments on commit 92c922f

Please sign in to comment.