@@ -36,6 +36,21 @@ pub const CHROMOBIUS_SHA256: &str =
3636pub const QUEST_COMMIT : & str = "v4.0.0" ;
3737pub const QUEST_SHA256 : & str = "e6a922a9dc1d6ee7c4d2591a277646dca2ce2fd90eecf36fd66970cb24bbfb67" ;
3838
39+ /// Qulacs library constants
40+ /// Used by Qulacs quantum simulator
41+ pub const QULACS_VERSION : & str = "0.6.12" ;
42+ pub const QULACS_SHA256 : & str = "b9e5422e0bb2b07725b0c62f7827326b5a1486facb30cf68d12b4ef119c485e9" ;
43+
44+ /// Eigen library constants
45+ /// Used by Qulacs quantum simulator
46+ pub const EIGEN_VERSION : & str = "3.4.0" ;
47+ pub const EIGEN_SHA256 : & str = "8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72" ;
48+
49+ /// Boost library constants
50+ /// Used by Qulacs quantum simulator (for property_tree and dynamic_bitset)
51+ pub const BOOST_VERSION : & str = "1.83.0" ;
52+ pub const BOOST_SHA256 : & str = "6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e" ;
53+
3954/// Helper functions to create DownloadInfo structs for each dependency
4055use crate :: DownloadInfo ;
4156
@@ -96,3 +111,37 @@ pub fn quest_download_info() -> DownloadInfo {
96111 name : format ! ( "quest-{}" , QUEST_COMMIT ) ,
97112 }
98113}
114+
115+ /// Create DownloadInfo for Qulacs
116+ pub fn qulacs_download_info ( ) -> DownloadInfo {
117+ DownloadInfo {
118+ url : format ! ( "https://github.com/qulacs/qulacs/archive/v{QULACS_VERSION}.tar.gz" ) ,
119+ sha256 : QULACS_SHA256 ,
120+ name : format ! ( "qulacs-{}" , QULACS_VERSION ) ,
121+ }
122+ }
123+
124+ /// Create DownloadInfo for Eigen
125+ pub fn eigen_download_info ( ) -> DownloadInfo {
126+ DownloadInfo {
127+ url : format ! (
128+ "https://gitlab.com/libeigen/eigen/-/archive/{}/eigen-{}.tar.gz" ,
129+ EIGEN_VERSION , EIGEN_VERSION
130+ ) ,
131+ sha256 : EIGEN_SHA256 ,
132+ name : format ! ( "eigen-{}" , EIGEN_VERSION ) ,
133+ }
134+ }
135+
136+ /// Create DownloadInfo for Boost
137+ pub fn boost_download_info ( ) -> DownloadInfo {
138+ let version_underscore = BOOST_VERSION . replace ( '.' , "_" ) ;
139+ DownloadInfo {
140+ url : format ! (
141+ "https://archives.boost.io/release/{}/source/boost_{}.tar.bz2" ,
142+ BOOST_VERSION , version_underscore
143+ ) ,
144+ sha256 : BOOST_SHA256 ,
145+ name : format ! ( "boost-{}" , BOOST_VERSION ) ,
146+ }
147+ }
0 commit comments