From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CIBFD5TYYGWJWQAAauVa8A:P1 (envelope-from ) for ; Fri, 24 Nov 2023 18:08:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CIBFD5TYYGWJWQAAauVa8A (envelope-from ) for ; Fri, 24 Nov 2023 18:08:36 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EBEB03742C for ; Fri, 24 Nov 2023 18:08:35 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=NM7h3M82; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700845716; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XPgJfIvk/sQm/B+GvQOgscUsb8SU3d+FYBbsRCm6XA8=; b=dy5+Fqn4zvZbR3S/kOQBkVQwz+YgO6uWEfhP/2Pl59U5oL+3pq+bGKcgJ3zglgrl2MlVe3 RMLugBU5PT6sZkXfODOR+4xS5NB93R75+1tUCLI3Fdqu8+A4lt6aBugP0k0dspGtftM6l/ so7DWZ9MM5f9vW3ByFKczqWFkJD2/kNdpsYZm9WmUtaCFOhtqmDiDgb1xnBv4Ohs36qv47 iaI3gtIrfAnF6hmv6bPXq9JwHKuTcCyO26FoutXZDYML7ssA8xvV2ZIPqbfyT+SxyQBSIT m90OF0Jk7Guv/dT9BzGnxDAxUhzL9rZGAK/V1z15t0QXI3kK9Vvf45upAAbTYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=NM7h3M82; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700845716; a=rsa-sha256; cv=none; b=T7UuSWeuhP3C2kZw+K7NR38JEFrjjz+3/2j9fo/0AEfY1hcA7myJ918TENIJCbX+fDUdXV UToz/j3C+VZ8l3MsU9cnHkioKn1QQQVRLD/6xqF9A0GsGkVmmKEV8mmrlrlrroQ8SzMaiW Rs1SypTRf1KH0YlNcQPRFc2DWgeQPQ6w04X2R+SqgKCvLsjF7QL4QR3cjFz3ZJoQhUnhQf eOVnpcZv8Pb6v8fiv5bY3jTONwCSSpoBR7xkkU2BEd7cwXQDfGxz0CmbZhAGe9k1eoQQN8 2v51o36sKmOeB8xTxno1tIERjn8m5LN7aZObbBihHL2UN1Z3F8FLEJn6Y+a6OA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6Zeu-0001Lm-NC; Fri, 24 Nov 2023 12:08:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6Zer-0001Ii-HI for guix-patches@gnu.org; Fri, 24 Nov 2023 12:08:01 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r6Zer-0005lF-0Y for guix-patches@gnu.org; Fri, 24 Nov 2023 12:08:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r6Zev-0004iB-IY for guix-patches@gnu.org; Fri, 24 Nov 2023 12:08:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67428] [PATCH v2 12/12] gnu: Add cl-qvm Resent-From: Michal Atlas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Nov 2023 17:08:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67428 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67428@debbugs.gnu.org Cc: Michal Atlas Received: via spool by 67428-submit@debbugs.gnu.org id=B67428.170084567318019 (code B ref 67428); Fri, 24 Nov 2023 17:08:05 +0000 Received: (at 67428) by debbugs.gnu.org; 24 Nov 2023 17:07:53 +0000 Received: from localhost ([127.0.0.1]:37117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6Zei-0004gT-Ot for submit@debbugs.gnu.org; Fri, 24 Nov 2023 12:07:53 -0500 Received: from mout01.posteo.de ([185.67.36.65]:58359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6ZeY-0004ea-9Z for 67428@debbugs.gnu.org; Fri, 24 Nov 2023 12:07:43 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1551D240027 for <67428@debbugs.gnu.org>; Fri, 24 Nov 2023 18:07:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1700845652; bh=Hbvh8R+cFxt4mw+uEo5cO+sZbZOshRtH3QMlr95w1WM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=NM7h3M82Lgxnl0XHoUNUiT4bOmO9jA61w70Mv7wfSHZSKMnjZJ5OIg08tVWH8BQjv Yozr+af/hQFGO1E0t2Dgx8mhZrwoXEpqjvzSqnkA2odoT4i5IHObQKRzLbwwZxZYM/ qX2zo6PJAJ68RCq3uZzHgYX+OSKO2F5urPojNbvT+Q6XilEZ2D9kJiWAKJRGdHlJFS DEx0uFM5Rwe18G9++wQ3a8+Db/cANaKeUIcRG6LBY2KjOfvLLigD4XV77BlwwhYLp2 2AR0ERYddjjS117G6CbwI6Ltu+wBqDQg17RIZjYmeS0J4XKtGz/sp65QRNfZ9LWtvi JtlqmO11Kl1Dw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ScLyC5Q39z6tvr; Fri, 24 Nov 2023 18:07:31 +0100 (CET) From: Michal Atlas Date: Fri, 24 Nov 2023 17:07:17 +0000 Message-ID: <97091653a21aeab8769e342271560242df0f21f2.1700844983.git.michal_atlas+git@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.72 X-Spam-Score: -4.72 X-Migadu-Queue-Id: EBEB03742C X-Migadu-Scanner: mx10.migadu.com X-TUID: PvuunyYgDUqD * gnu/packages/quantum.scm: (sbcl-qvm, cl-qvm): New variables. Change-Id: Ife0bdcfdce01dc6ca4a7115cb54e093a76729527 --- gnu/packages/quantum.scm | 64 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gnu/packages/quantum.scm b/gnu/packages/quantum.scm index 01f1d0e8f9..1cd980cb3f 100644 --- a/gnu/packages/quantum.scm +++ b/gnu/packages/quantum.scm @@ -142,3 +142,67 @@ (define-public sbcl-cl-quil (define-public cl-quil (sbcl-package->cl-source-package sbcl-cl-quil)) +(define-public sbcl-qvm + (package + (name "sbcl-qvm") + (version "1.17.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/quil-lang/qvm") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1cvmkqfcy7rv5jlim4kh4dvqhd3jk6mw1kwrphaqghjymrf72yp8")))) + (build-system asdf-build-system/sbcl) + (outputs '("out" "bin")) + (inputs (list sbcl-alexandria + sbcl-abstract-classes + sbcl-ieee-floats + sbcl-lparallel + sbcl-magicl + sbcl-trivial-garbage + sbcl-global-vars + sbcl-cffi + sbcl-static-vectors + sbcl-trivial-garbage + sbcl-cl-quil + sbcl-mt19937 + sbcl-trivial-features + + ;; qvm-app + sbcl-command-line-arguments + sbcl-trivial-benchmark + sbcl-hunchentoot + sbcl-slime-swank + sbcl-cl-syslog)) + (arguments + (list + #:asd-systems ''("qvm" "qvm-app") + ;; Requires cyclic dependency with quilc + #:tests? #f + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'remove-git-dependency + (lambda _ + (substitute* "app/src/qvm-app-version.lisp" + (("\\(git-hash '#:qvm-app\\)") + "\"unknown\"")))) + (add-after 'create-asdf-configuration 'build-program + (lambda* (#:key outputs #:allow-other-keys) + (build-program (string-append (assoc-ref outputs "bin") + "/bin/qvm") + outputs + #:dependencies '("qvm-app") + #:entry-program '((qvm-app::asdf-entry-point)) + #:compress? #t)))))) + + (synopsis "The high-performance and featureful Quil simulator") + (description + "This is the official Quil-Lang Quantum Virtual Machine (QVM), +a flexible and efficient simulator for Quil") + (home-page "https://github.com/quil-lang/qvm") + (license license:asl2.0))) + +(define-public cl-qvm + (sbcl-package->cl-source-package sbcl-qvm)) -- 2.41.0