From 1ff09127fff1e33c6188485550b670e1c794cbf2 Mon Sep 17 00:00:00 2001 From: Jae Yoo Date: Mon, 1 May 2023 23:04:28 +0000 Subject: [PATCH 1/2] Bump up to qsim 0.16.1 --- WORKSPACE | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 44bce67ce..e28452a8d 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -26,9 +26,9 @@ cc_library( http_archive( name = "qsim", - sha256 = "e4d716b945d44c6901ccc4ee4c2344e2af127b28713a0faebf0687745e0bf5e7", - strip_prefix = "qsim-0.16.0", - urls = ["https://github.com/quantumlib/qsim/archive/refs/tags/v0.16.0.zip"], + sha256 = "f7f410a07543a51b254f7a5810b5153e196a4c7b4ec89dc8faf86f9c77eec97b", + strip_prefix = "qsim-0.16.1", + urls = ["https://github.com/quantumlib/qsim/archive/refs/tags/v0.16.1.zip"], ) http_archive( From f4f0125cb56d7be0ad85698a3657e8b9736a24df Mon Sep 17 00:00:00 2001 From: Jae Yoo Date: Mon, 1 May 2023 23:45:44 +0000 Subject: [PATCH 2/2] Fix cuquantum config bzl rule for uninitialized lib path --- third_party/cuquantum/cuquantum_configure.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/cuquantum/cuquantum_configure.bzl b/third_party/cuquantum/cuquantum_configure.bzl index b79a7496e..e776256da 100644 --- a/third_party/cuquantum/cuquantum_configure.bzl +++ b/third_party/cuquantum/cuquantum_configure.bzl @@ -205,6 +205,7 @@ def _cuquantum_pip_impl(repository_ctx): cuquantum_header_path = _find_file(repository_ctx, "custatevec.h") cuquantum_header_path = cuquantum_header_path[:cuquantum_header_path.find("/custatevec.h")] custatevec_shared_library_path = _find_file(repository_ctx, "libcustatevec.so") + cuquantum_root = custatevec_shared_library_path[:custatevec_shared_library_path.find("/lib/lib")] else: cuquantum_header_path = "%s/include" % cuquantum_root custatevec_shared_library_path = "%s/lib/libcustatevec.so" % (cuquantum_root)