# $Id: Portfile 20456 2006-11-03 15:10:31Z blair@macports.org $ PortSystem 1.0 name libquantum version 0.2.4 categories science platforms darwin maintainers mww@opendarwin.org description library for the simulation of a quantum computer long_description libquantum is a C library for the simulation of a quantum \ computer. Based on the principles of quantum mechanics, it \ provides an implementation of a quantum register. Basic \ operations for register manipulation such as the Hadamard gate \ or the Controlled-NOT gate are available through an \ easy-to-use interface. Measurements can be performed on either \ single qubits or the whole quantum register. homepage http://www.enyo.de/libquantum/ master_sites ${homepage}/downloads/ checksums md5 ce7b9f942b4b23c7d7e17e974d8ce577 pre-test { system "cd ${worksrcpath} && ${build.cmd} demos" } test.run yes test.cmd ./grover 42 10 && ./shor 15 test.target