Skip to content

Commit 6209052

Browse files
authored
Renaming CUDA Quantum to CUDA-Q (#1587)
1 parent 81f1e53 commit 6209052

File tree

207 files changed

+820
-837
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+820
-837
lines changed

Building.md

+26-28
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Building CUDA Quantum from Source
1+
# Building CUDA-Q from Source
22

3-
To learn more about how to use CUDA Quantum, please take a look at the [CUDA
4-
Quantum Documentation][cuda_quantum_docs]. The page also contains [installation
3+
To learn more about how to use CUDA-Q, please take a look at the [CUDA-Q
4+
Documentation][cuda_quantum_docs]. The page also contains [installation
55
instructions][official_install] for released packages and nightly builds.
66

77
[cuda_quantum_docs]: https://nvidia.github.io/cuda-quantum/latest
@@ -10,18 +10,18 @@ instructions][official_install] for released packages and nightly builds.
1010
https://nvidia.github.io/cuda-quantum/latest/data_center_install.html
1111

1212
This document is intended for anyone who wants to develop their own
13-
modifications of, or contributions to, this code base. If you want to build CUDA
14-
Quantum from source for the purpose of installing it on a system that is not
13+
modifications of, or contributions to, this code base. If you want to build
14+
CUDA-Q from source for the purpose of installing it on a system that is not
1515
officially supported by our distributed packages, please take a look at our
1616
[installation guide][data_center_install] instead.
1717

18-
To build the CUDA Quantum source code locally, fork this repository and follow
19-
the [instructions for setting up your environment](./Dev_Setup.md). Once you
20-
have done that, you should be able to run the [build
21-
script](./scripts/build_cudaq.sh) to build and install CUDA Quantum in a local
22-
folder. The path where CUDA Quantum will be installed can be configured by
23-
setting the environment variable `CUDAQ_INSTALL_PREFIX`. If you customize this
24-
path or do not work in our development container, you either need to invoke the
18+
To build the CUDA-Q source code locally, fork this repository and follow the
19+
[instructions for setting up your environment](./Dev_Setup.md). Once you have
20+
done that, you should be able to run the [build
21+
script](./scripts/build_cudaq.sh) to build and install CUDA-Q in a local folder.
22+
The path where CUDA-Q will be installed can be configured by setting the
23+
environment variable `CUDAQ_INSTALL_PREFIX`. If you customize this path or do
24+
not work in our development container, you either need to invoke the
2525
built/installed binaries with the full path or modify your path variables as
2626
follows:
2727

@@ -31,18 +31,17 @@ export PYTHONPATH="${CUDAQ_INSTALL_PREFIX}:${PYTHONPATH}"
3131
```
3232

3333
Our development container comes with a pre-built version of LLVM which is used
34-
to build CUDA Quantum. If you are working outside our container, please see the
35-
instructions for [building CUDA Quantum with a custom LLVM
36-
version](#building-cuda-quantum-with-a-custom-llvm-version).
34+
to build CUDA-Q. If you are working outside our container, please see the
35+
instructions for [building CUDA-Q with a custom LLVM
36+
version](#building-cuda-q-with-a-custom-llvm-version).
3737

38-
Once you have built CUDA Quantum, you should be able to run the tests and
39-
confirm that they pass by navigating to the `build` folder and entering the
40-
command `ctest`. If all tests pass, you are all set to [start
41-
developing](./Developing.md).
38+
Once you have built CUDA-Q, you should be able to run the tests and confirm that
39+
they pass by navigating to the `build` folder and entering the command `ctest`.
40+
If all tests pass, you are all set to [start developing](./Developing.md).
4241

4342
## GPU accelerated backends
4443

45-
CUDA Quantum comes with a range of simulator backends for testing and debugging
44+
CUDA-Q comes with a range of simulator backends for testing and debugging
4645
application code. In addition to simulators that run on CPUs, there are also
4746
multiple backends leveraging [cuQuantum][cuquantum] and [cuTensor][cutensor] for
4847
GPU accelerated simulation. You can take a look at the
@@ -60,11 +59,11 @@ detected running the command `nvidia-smi` in your development environment.
6059
[cutensor]: https://developer.nvidia.com/cutensor
6160
[nvidia_driver]: https://www.nvidia.com/download/index.aspx
6261

63-
## Building CUDA Quantum with a custom LLVM version
62+
## Building CUDA-Q with a custom LLVM version
6463

65-
CUDA Quantum is intended to be built using the LLVM commit that the submodule is
66-
set to (currently LLVM 16.0.6). If you need to update the LLVM commit, or if you
67-
are not using the pre-built version of that commit in our development container,
64+
CUDA-Q is intended to be built using the LLVM commit that the submodule is set
65+
to (currently LLVM 16.0.6). If you need to update the LLVM commit, or if you are
66+
not using the pre-built version of that commit in our development container,
6867
LLVM will need to be built from source. ***Building with LLVM >= 17.x is not
6968
currently supported*** due to the QIR specification's requirement to use typed
7069
pointers. LLVM 17.x removed the ability to use typed pointers and instead now
@@ -81,10 +80,9 @@ libraries should be installed:
8180
export LLVM_INSTALL_PREFIX=<installation_path>
8281
```
8382

84-
The CUDA Quantum [build script](./scripts/build_cudaq.sh) checks if
85-
`llvm-config` is available in the bin subfolder of that directory, and will
86-
automatically invoke the [LLVM build script](./scripts/build_llvm.sh) if it is
87-
not.
83+
The CUDA-Q [build script](./scripts/build_cudaq.sh) checks if `llvm-config` is
84+
available in the bin subfolder of that directory, and will automatically invoke
85+
the [LLVM build script](./scripts/build_llvm.sh) if it is not.
8886

8987
Please note that building LLVM may take a while and you should have about 64GB
9088
of memory available for the build. Please configure your Docker container

CITATION.cff

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
cff-version: 1.2.0
2-
title: 'CUDA Quantum'
2+
title: 'CUDA-Q'
33
message: 'If you use this software, please cite it as below.'
44
authors:
5-
- name: "The CUDA Quantum development team"
5+
- name: "The CUDA-Q development team"
66
license: Apache-2.0
77
license-url: "https://github.com/NVIDIA/cuda-quantum/blob/main/LICENSE"
88
repository-code: "https://github.com/NVIDIA/cuda-quantum"

Code_of_Conduct.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Code of Conduct
22

3-
This document outlines the code of conduct followed and enforced for the CUDA
4-
Quantum project. This Code of Conduct is adapted from the [Contributor
3+
This document outlines the code of conduct followed and enforced for the CUDA-Q
4+
project. This Code of Conduct is adapted from the [Contributor
55
Covenant][homepage], version 1.4, available [here][codeofconduct]. For answers
66
to common questions about this code of conduct, see the [FAQs][faqs].
77

Contributing.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Contributing
22

3-
Thank you for your interest in contributing to CUDA Quantum! Based on the type
4-
of contribution, it will fall into three categories:
3+
Thank you for your interest in contributing to CUDA-Q! Based on the type of
4+
contribution, it will fall into three categories:
55

66
1. Report a bug, feature request, or documentation issue:
77

@@ -10,20 +10,20 @@ of contribution, it will fall into three categories:
1010
them, scheduling them for a release. If you believe the issue needs priority
1111
attention comment on the issue to notify the team.
1212

13-
1. Share your work built upon CUDA Quantum:
13+
1. Share your work built upon CUDA-Q:
1414

1515
We would love to hear more about your work! Please share with us on
1616
[NVIDIA/cudaq GitHub
1717
Discussions](https://github.com/NVIDIA/cuda-quantum/discussions) or consider
1818
contributing to our [examples](./docs/sphinx/examples/)! We also take any
19-
CUDA Quantum related questions on this forum.
19+
CUDA-Q related questions on this forum.
2020

2121
1. Implement a feature or bug-fix:
2222

2323
Please file an [issue][cuda_quantum_issues] on the repository and express
24-
your interest in contributing to its implementation. Someone from the CUDA
25-
Quantum team will respond on the issue to discuss how to best proceed with
26-
the suggestion. For more information regarding contributing to the code
27-
base, see also [Developing.md](./Developing.md).
24+
your interest in contributing to its implementation. Someone from the CUDA-Q
25+
team will respond on the issue to discuss how to best proceed with the
26+
suggestion. For more information regarding contributing to the code base,
27+
see also [Developing.md](./Developing.md).
2828

2929
[cuda_quantum_issues]: https://github.com/NVIDIA/cuda-quantum/issues

Dev_Setup.md

+18-19
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ others tools to support specialized development workflows. To work with our
4848
development container please install the [Development Containers
4949
extension][dev_container_extension].
5050

51-
Create a local clone of your fork of the CUDA Quantum repository, navigate to
52-
that folder, and open VS Code by executing the command `code .`. You should now
53-
get a pop up offering to open the folder in the container. Please select this
54-
option to work in a pre-configured environment that contains all necessary
55-
dependencies to build CUDA Quantum:
51+
Create a local clone of your fork of the CUDA-Q repository, navigate to that
52+
folder, and open VS Code by executing the command `code .`. You should now get a
53+
pop up offering to open the folder in the container. Please select this option
54+
to work in a pre-configured environment that contains all necessary dependencies
55+
to build CUDA-Q:
5656

5757
- On Mac/Linux: Select the option `Open Folder in Container`
5858
- On Windows: Select the option `Clone Repository in Container Volume` for the
@@ -69,9 +69,9 @@ The container also defines which extensions will be [loaded
6969
automatically](.devcontainer/devcontainer.json) when launching it. This does not
7070
impact your VS Code configuration outside the container environment.
7171

72-
You should now be all set to build CUDA Quantum and run tests. Please open a
73-
terminal in VS Code and follow the instructions [here](./Building.md) to confirm
74-
that everything works as expected.
72+
You should now be all set to build CUDA-Q and run tests. Please open a terminal
73+
in VS Code and follow the instructions [here](./Building.md) to confirm that
74+
everything works as expected.
7575

7676
[vs_code]: https://code.visualstudio.com/download
7777
[dev_container_extension]:
@@ -86,12 +86,11 @@ The development container in this repository is configured with extensions to
8686
facilitate working with MLIR and LLVM files. The [MLIR
8787
extension][mlir_extension] requires a language server to work properly. The
8888
`cudaq-lsp-server` tool in this repository extends the [MLIR Language
89-
Server](https://mlir.llvm.org/docs/Tools/MLIRLSP/) to add support for CUDA
90-
Quantum specific dialects. It recognizes files with extensions `.mlir` and
91-
`.qke`.
89+
Server](https://mlir.llvm.org/docs/Tools/MLIRLSP/) to add support for CUDA-Q
90+
specific dialects. It recognizes files with extensions `.mlir` and `.qke`.
9291

93-
The `cudaq-lsp-server` is built when running the [CUDA Quantum build
94-
script](./scripts/build_cudaq.sh) as described in [Building CUDA Quantum from
92+
The `cudaq-lsp-server` is built when running the [CUDA-Q build
93+
script](./scripts/build_cudaq.sh) as described in [Building CUDA-Q from
9594
Source](./Building.md). If you customize the installation location, you will
9695
need to either add that location to your path, or edit the value of
9796
`mlir.server_path` in your workspace settings for the extension to work
@@ -104,18 +103,18 @@ properly.
104103

105104
If you have followed the instructions for working inside the provided
106105
development container (recommended) you are all set and can proceed to [Getting
107-
Started with Developing CUDA Quantum](./Building.md).
106+
Started with Developing CUDA-Q](./Building.md).
108107

109108
If you do not leverage the container definition provided in this repository, you
110109
will need to manually install all prerequisites for building the code on this
111110
repository, and configure your preferred IDE for working with Python, C++, MLIR,
112111
and LLVM components. To install all necessary build and runtime dependencies,
113112
please follow the instructions in our [official guide][data_center_install] for
114-
building and installing CUDA Quantum from source. The guide details how to get
115-
a fully featured CUDA Quantum installation that can be deployed on a system other
116-
than the one used for the build. For development purposes, components/certain
117-
prerequisites can be omitted as needed, and additional tools and flags for
118-
debugging purposes may be beneficial.
113+
building and installing CUDA-Q from source. The guide details how to get a fully
114+
featured CUDA-Q installation that can be deployed on a system other than the one
115+
used for the build. For development purposes, components/certain prerequisites
116+
can be omitted as needed, and additional tools and flags for debugging purposes
117+
may be beneficial.
119118

120119
[data_center_install]:
121120
https://nvidia.github.io/cuda-quantum/latest/data_center_install.html

Developing.md

+16-17
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Getting Started with Developing CUDA Quantum
1+
# Getting Started with Developing CUDA-Q
22

33
This document contains guidelines for contributing to the code in this
44
repository. This document is relevant primarily for contributions to the `nvq++`
5-
compiler, the CUDA Quantum runtime, or to the integrated simulation backends. If
6-
you would like to contribute applications and examples that use the CUDA Quantum
7-
platform, please follow the instructions for [installing CUDA
8-
Quantum][official_install] instead.
5+
compiler, the CUDA-Q runtime, or to the integrated simulation backends. If you
6+
would like to contribute applications and examples that use the CUDA-Q platform,
7+
please follow the instructions for [installing CUDA-Q][official_install]
8+
instead.
99

1010
[official_install]: https://nvidia.github.io/cuda-quantum/latest/install.html
1111

@@ -14,7 +14,7 @@ Quantum][official_install] instead.
1414
Before getting started with development, please create a fork of this repository
1515
if you haven't done so already and make sure to check out the latest version on
1616
the `main` branch. After following the instruction for [setting up your
17-
development environment](./Dev_Setup.md) and [building CUDA Quantum from
17+
development environment](./Dev_Setup.md) and [building CUDA-Q from
1818
source](Building.md), you should be able to confirm that you can run the tests
1919
and examples using your local build. If you edit [this
2020
file](./runtime/nvqir/CircuitSimulator.h) to add a print statement
@@ -33,7 +33,7 @@ nvq++ "$CUDAQ_REPO_ROOT/docs/sphinx/examples/cpp/algorithms/grover.cpp" -o grove
3333
```
3434

3535
When working on compiler internals, it can be useful to look at intermediate
36-
representations for CUDA Quantum kernels.
36+
representations for CUDA-Q kernels.
3737

3838
To see how the kernels in [this
3939
example](./docs/sphinx/examples/cpp/algorithms/grover.cpp) are translated, you
@@ -54,28 +54,27 @@ quake-translate --convert-to=qir
5454

5555
## Code style
5656

57-
With regards to code format and style, we distinguish public APIs and CUDA
58-
Quantum internals. Public APIs should follow the style guide of the respective
59-
language, specifically [this guide][cpp_style] for C++, and the [this
60-
guide][python_style] for Python. The CUDA Quantum internals on the other hand
61-
follow the [MLIR/LLVM style guide][llvm_style]. Please ensure that your code
62-
includes comprehensive doc comments as well as a comment at the top of the file
63-
to indicating its purpose.
57+
With regards to code format and style, we distinguish public APIs and CUDA-Q
58+
internals. Public APIs should follow the style guide of the respective language,
59+
specifically [this guide][cpp_style] for C++, and the [this guide][python_style]
60+
for Python. The CUDA-Q internals on the other hand follow the [MLIR/LLVM style
61+
guide][llvm_style]. Please ensure that your code includes comprehensive doc
62+
comments as well as a comment at the top of the file to indicating its purpose.
6463

6564
[python_style]: https://google.github.io/styleguide/pyguide.html
6665
[cpp_style]: https://www.gnu.org/prep/standards/standards.html
6766
[llvm_style]: https://llvm.org/docs/CodingStandards.html
6867

6968
## Testing and debugging
7069

71-
CUDA Quantum tests are categorized as unit tests on runtime library code and
70+
CUDA-Q tests are categorized as unit tests on runtime library code and
7271
`FileCheck` tests on compiler code output. All code added under the runtime
7372
libraries should have an accompanying test added to the appropriate spot in the
7473
`unittests` folder. All code that directly impacts compiler code should have an
7574
accompanying `FileCheck` test. These tests are located in the `test` folder.
7675

77-
When running a CUDA Quantum executable locally, the verbosity of the output can
78-
be configured by setting the `CUDAQ_LOG_LEVEL` environment variable. Setting its
76+
When running a CUDA-Q executable locally, the verbosity of the output can be
77+
configured by setting the `CUDAQ_LOG_LEVEL` environment variable. Setting its
7978
value to `info` will enable printing of informational messages, and setting its
8079
value to `trace` generates additional messages to trace the execution. These
8180
logs can be directed to a file by setting the `CUDAQ_LOG_FILE` variable when

0 commit comments

Comments
 (0)