From 5ee6f275b8d2371c6366ee41ddaea831a647a7ce Mon Sep 17 00:00:00 2001 From: obache Date: Sun, 15 Aug 2010 07:35:56 +0000 Subject: Update libquantum to 1.0.0. libquantum 1.0.0: - Fixed quantum_gate1 to work properly with sorted regs - Fixed several bugs in quantum_rk4a libquantum 0.9.1: - Added fourth-order Runge-Kutta time evolution - Fixed error in quantum_measure() that caused some register values never being measured - Improved error handling - Updated license and FSF contact data - Added arbitrary two-qubit gate - New function two print entire time evolution operator - Fixed Makefile syntax --- misc/libquantum/Makefile | 10 ++++++---- misc/libquantum/distinfo | 10 +++++----- misc/libquantum/patches/patch-aa | 17 ++++------------- 3 files changed, 15 insertions(+), 22 deletions(-) (limited to 'misc') diff --git a/misc/libquantum/Makefile b/misc/libquantum/Makefile index a20ef53d894..370819d3927 100644 --- a/misc/libquantum/Makefile +++ b/misc/libquantum/Makefile @@ -1,17 +1,19 @@ -# $NetBSD: Makefile,v 1.2 2008/07/14 12:56:09 joerg Exp $ +# $NetBSD: Makefile,v 1.3 2010/08/15 07:35:56 obache Exp $ # -DISTNAME= libquantum-0.2.4 +DISTNAME= libquantum-1.0.0 CATEGORIES= misc -MASTER_SITES= http://www.enyo.de/libquantum/downloads/ +MASTER_SITES= http://www.libquantum.de/files/ MAINTAINER= lennart@augustsson.net -HOMEPAGE= http://www.enyo.de/libquantum/ +HOMEPAGE= http://www.libquantum.de/ COMMENT= Quantum computing simulation library +LICENSE= gnu-gpl-v3 PKG_DESTDIR_SUPPORT= user-destdir GNU_CONFIGURE= yes +USE_LIBTOOL= yes INSTALL_TARGET= install quobtools_install diff --git a/misc/libquantum/distinfo b/misc/libquantum/distinfo index 57640da03f1..ee4a0d8371f 100644 --- a/misc/libquantum/distinfo +++ b/misc/libquantum/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.4 2005/10/23 20:10:57 rillig Exp $ +$NetBSD: distinfo,v 1.5 2010/08/15 07:35:56 obache Exp $ -SHA1 (libquantum-0.2.4.tar.gz) = dbd76434b7d4026db96aedcd16ae4cd01fb341cd -RMD160 (libquantum-0.2.4.tar.gz) = d189f11d8119d71a3d443da28edfaea108b3f9b5 -Size (libquantum-0.2.4.tar.gz) = 211403 bytes -SHA1 (patch-aa) = 6acf755bc0958577cd54db3f7c2519caf08bdbc4 +SHA1 (libquantum-1.0.0.tar.gz) = 1b3476ac5061ee49b470d4170863d221c0acb903 +RMD160 (libquantum-1.0.0.tar.gz) = ebd88b646cb874f192cc0ce41272fff22820a8df +Size (libquantum-1.0.0.tar.gz) = 223241 bytes +SHA1 (patch-aa) = ae9d274d7074e26b78817eb7723413b569154918 diff --git a/misc/libquantum/patches/patch-aa b/misc/libquantum/patches/patch-aa index 0c97207a3ba..89a75d2deac 100644 --- a/misc/libquantum/patches/patch-aa +++ b/misc/libquantum/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.2 2005/10/23 20:10:57 rillig Exp $ +$NetBSD: patch-aa,v 1.3 2010/08/15 07:35:56 obache Exp $ ---- measure.c.old Tue Jan 11 22:12:21 2005 -+++ measure.c Wed Feb 2 12:17:54 2005 -@@ -39,7 +39,7 @@ +--- measure.c.orig 2008-09-07 11:02:28.000000000 +0000 ++++ measure.c +@@ -40,7 +40,7 @@ double quantum_frand() { @@ -11,12 +11,3 @@ $NetBSD: patch-aa,v 1.2 2005/10/23 20:10:57 rillig Exp $ } /* Measure the contents of a quantum register */ -@@ -64,7 +64,7 @@ - result. Otherwise, continue with the next base state. */ - - r -= quantum_prob_inline(reg.node[i].amplitude); -- if(quantum_prob_inline(reg.node[i].amplitude) >= r) -+ if(0 >= r) - return reg.node[i].state; - } - -- cgit v1.2.3