From c3eb283a515ec5bc18923e12f604f29ef604bcc3 Mon Sep 17 00:00:00 2001 From: Pradnya Khalate Date: Mon, 4 Nov 2024 14:28:57 -0800 Subject: [PATCH 1/2] * Update the cuTensor version Signed-off-by: Pradnya Khalate --- scripts/configure_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/configure_build.sh b/scripts/configure_build.sh index 1ee4dbadb8..a192834ed0 100644 --- a/scripts/configure_build.sh +++ b/scripts/configure_build.sh @@ -79,7 +79,7 @@ if [ "$1" == "install-cutensor" ]; then CUDA_ARCH_FOLDER=$([ "$(uname -m)" == "aarch64" ] && echo sbsa || echo x86_64) # [>cuTensorInstall] - CUTENSOR_VERSION=2.0.1.2 + CUTENSOR_VERSION=2.0.2.5 CUTENSOR_DOWNLOAD_URL=https://developer.download.nvidia.com/compute/cutensor/redist/libcutensor cutensor_archive=libcutensor-linux-${CUDA_ARCH_FOLDER}-${CUTENSOR_VERSION}-archive.tar.xz From ce5cc3a2023eba1b5b9079e8ae7759ab9ebc507b Mon Sep 17 00:00:00 2001 From: Pradnya Khalate Date: Mon, 4 Nov 2024 15:20:22 -0800 Subject: [PATCH 2/2] * Fix for qudit / qubit check in state retrieval Co-authored-by: Thien Nguyen Signed-off-by: Pradnya Khalate --- runtime/cudaq/qis/state.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/cudaq/qis/state.cpp b/runtime/cudaq/qis/state.cpp index 461607f389..88b741d14d 100644 --- a/runtime/cudaq/qis/state.cpp +++ b/runtime/cudaq/qis/state.cpp @@ -62,7 +62,9 @@ std::complex state::operator[](std::size_t idx) const { // network state. std::vector basisState(numQubits, 0); // Are we dealing with qudits or qubits? - if (std::log2(numElements) / numQubits > 1) { + /// NOTE: Following check makes assumption that only qubit simulation uses + /// GPU(s) + if (!internal->isDeviceData() && std::log2(numElements) / numQubits > 1) { for (std::size_t i = 0; i < numQubits; ++i) { basisState[i] = 1; // TODO: This is a placeholder. We need to figure out // how to handle qudits.