From 9d70cb8c9afdc42c17f68a321ce7f39054881b48 Mon Sep 17 00:00:00 2001 From: Michal Atlas Date: Sun, 28 Jan 2024 16:58:52 +0100 Subject: gnu: Add cl-quil. * gnu/packages/quantum.scm (cl-quil, sbcl-cl-quil): New variables. Change-Id: I7777f569cbb28737d25dd1e990a8e8aeb2c251b7 Signed-off-by: Guillaume Le Vaillant --- gnu/packages/quantum.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'gnu/packages/quantum.scm') diff --git a/gnu/packages/quantum.scm b/gnu/packages/quantum.scm index c0658daae4..9877528418 100644 --- a/gnu/packages/quantum.scm +++ b/gnu/packages/quantum.scm @@ -66,3 +66,50 @@ an efficient transport protocol by using ZeroMQ (ZMQ) sockets and MessagePack (define-public cl-rpcq (sbcl-package->cl-source-package sbcl-rpcq)) + +(define-public sbcl-cl-quil + (package + (name "sbcl-cl-quil") + (version "1.26.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/quil-lang/quilc") + (commit (string-append "v" version)))) + (file-name (git-file-name "cl-quil" version)) + (sha256 + (base32 "1s99lk456sw9hhsx5cf3x9r97iw9s3ydqsd94zz3bjnq77wmkhz5")))) + (build-system asdf-build-system/sbcl) + (arguments + (list + ;; Requires cyclic dependency with qvm + #:tests? #f)) + (inputs + (list sbcl-abstract-classes + sbcl-alexa + sbcl-alexandria + sbcl-cl-algebraic-data-type + sbcl-cl-grnm + sbcl-cl-heap + sbcl-cl-permutation + sbcl-cl-yacc + sbcl-global-vars + sbcl-magicl + sbcl-optima + sbcl-parse-float + sbcl-queues + sbcl-salza2 + sbcl-split-sequence + sbcl-trivial-garbage + sbcl-yason)) + (synopsis "The optimizing Quil compiler") + (description + "Quil is the quantum instruction language, originally developed at +Rigetti Computing. In Quil quantum algorithms are expressed using Quil's +standard gates and instructions") + (home-page "https://github.com/quil-lang/quilc") + (license license:asl2.0))) + +(define-public cl-quil + (sbcl-package->cl-source-package sbcl-cl-quil)) -- cgit v1.2.3