From nobody Mon Aug 8 03:53:00 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M1Mjm5HDJz4YnKg; Mon, 8 Aug 2022 03:53:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M1Mjm4lnTz47SF; Mon, 8 Aug 2022 03:53:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659930780; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uDwl6a5HVvrfIa5VViCa4cEZyHzmLrXj5s0fcYxgQ8o=; b=ko1HSu5Lcfzk9u+QTB85quezi9rl8e6sjgMIR2Yf2WZZ/RW+7rJgMu4RHNTI5IIJVgCith Au7Z7/2pACDQgEF3L94v176WuoDI2cfdPlcmttq8/Xy1f3vsuvfnwkxyd3o3ll9ltfnubp T+Q7VTYGoYpC3o2Na6vHF2jbjzFKlT8vhGriMEZdUT5h9Vk2ADUdtc8NJ0WGqYDDkT7LYS yVvhXlz9iXRBNtwevcykGVLvv24Epsr0gMwYy6h4BrEJ4TEiGqgmkAHf+GfPySnqN5lJnF i/ziMOtt/KGUSeAAZKFGEBDFn1cvMOv7sQzWotDFdCkkUSGun/5wdMr5IyiRIg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M1Mjm3pmwzdMg; Mon, 8 Aug 2022 03:53:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2783r03G060130; Mon, 8 Aug 2022 03:53:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2783r0KX060128; Mon, 8 Aug 2022 03:53:00 GMT (envelope-from git) Date: Mon, 8 Aug 2022 03:53:00 GMT Message-Id: <202208080353.2783r0KX060128@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: bd91788f3b9f - main - science/tweedledum: New port: Library for analysis, compilation, synthesis of quantum circuits List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bd91788f3b9f5af0a5bb0b9f134b199b1c7c3002 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659930780; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uDwl6a5HVvrfIa5VViCa4cEZyHzmLrXj5s0fcYxgQ8o=; b=xvGb1Kq3GBX89eZTDldsRrnK5qPcwSHFi6M5h6bTv3RTCF/AJFyVHpGoOaNImD6X+WYr1J 1zGH/AcAQeDEX3L02P7oPvpGWbaC/qUnfTZtkuP9fEviesPH+0W34ktXV9wQ+giINpjxfv kGu9+WxbHA7JxrvB9Hon148QcuZS7lBjNZJrzxn/EdwnBb8D8/CcU57MCJmBFnmFIVwlCW Ac4bpTMbqfmvmwwG8cCO/HSPpNBj/CVFHzLSOI9znWejkh+HlulotlyJbBdSPbbzOfGVLa tb9bFb5wnOVtWqXERmBUDlLwPwm8twFdFMhF1VLuW740Y2P/+IuoGQ/logXZWg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659930780; a=rsa-sha256; cv=none; b=o0RBY3Zkcv5+XCAuMPpB8qho/XyDd0XbO5eD/ePq8t1N4ByC1L/HRXK1GMzMVO4zN1W9cJ wOImdtom/EBNheQarpNGqrl2NsXk+4f+j2SjJT47+1tTNFzUpsC1k7ENHYe1B98i7kavgh zysquIViDh2Qoh5OcXWCJULh1FQST8K+6wxF86XM5PDPc6VmM3CBTsR8F0OctJ5Uf5KkmZ iHEm3X7v5jmhdrrJz8SLOjRDTdeZDPIRRi5Tv6uBJApuFDMsLc/mBKODG4fBjcs+tMtMwx cGCQ3i3udSJ2N6ysyR4jZL6pf3TFVmpWC6TNCOWgKDGX/rLmOlgzY6qvjlEDRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=bd91788f3b9f5af0a5bb0b9f134b199b1c7c3002 commit bd91788f3b9f5af0a5bb0b9f134b199b1c7c3002 Author: Yuri Victorovich AuthorDate: 2022-08-08 03:35:25 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-08 03:35:25 +0000 science/tweedledum: New port: Library for analysis, compilation, synthesis of quantum circuits --- science/Makefile | 1 + science/tweedledum/Makefile | 27 ++++++++++ science/tweedledum/distinfo | 3 ++ science/tweedledum/pkg-descr | 6 +++ science/tweedledum/pkg-plist | 119 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 156 insertions(+) diff --git a/science/Makefile b/science/Makefile index 8cf5f3a1088d..5442d319d9fa 100644 --- a/science/Makefile +++ b/science/Makefile @@ -411,6 +411,7 @@ SUBDIR += thermofun SUBDIR += tinker SUBDIR += trilinos + SUBDIR += tweedledum SUBDIR += udunits SUBDIR += ukrmol+ SUBDIR += v_sim diff --git a/science/tweedledum/Makefile b/science/tweedledum/Makefile new file mode 100644 index 000000000000..ce6bfa4b34fa --- /dev/null +++ b/science/tweedledum/Makefile @@ -0,0 +1,27 @@ +PORTNAME= tweedledum +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.1 +CATEGORIES= science python # quantum-computing + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for analysis, compilation, synthesis of quantum circuits + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:testing compiler:c++17-lang + +USE_GITHUB= yes +GH_ACCOUNT= boschmitt + +CMAKE_OFF= TWEEDLEDUM_PYBINDS # doesn't affect the build result, see https://github.com/boschmitt/tweedledum/issues/175 +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_TESTING_ON= TWEEDLEDUM_TESTS +CMAKE_TESTING_TARGET= ${ALL_TARGET} # hack to disable the target + +TEST_WRKSRC= ${BUILD_WRKSRC}/tests + +post-test: # run tests, all tests pass with 3313 assertions in 73 test cases, see https://github.com/boschmitt/tweedledum/issues/177 + @cd ${TEST_WRKSRC} && ./run_tests + +.include diff --git a/science/tweedledum/distinfo b/science/tweedledum/distinfo new file mode 100644 index 000000000000..9695e73327fe --- /dev/null +++ b/science/tweedledum/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1659924254 +SHA256 (boschmitt-tweedledum-v1.1.1_GH0.tar.gz) = ba1c79808dfae1cf65a06eb6c5aeee4daf9e826386c582b5fea0c5c634f4d15b +SIZE (boschmitt-tweedledum-v1.1.1_GH0.tar.gz) = 5105832 diff --git a/science/tweedledum/pkg-descr b/science/tweedledum/pkg-descr new file mode 100644 index 000000000000..9a92e5f057f8 --- /dev/null +++ b/science/tweedledum/pkg-descr @@ -0,0 +1,6 @@ +tweedledum is a library for synthesis, compilation, and optimization of quantum +circuits. The library is written to be scalable up to problem sizes in which +quantum circuits outperform classical ones. Also, it is meant to be used both +independently and alongside established tools. + +WWW: https://github.com/boschmitt/tweedledum diff --git a/science/tweedledum/pkg-plist b/science/tweedledum/pkg-plist new file mode 100644 index 000000000000..c6e892f0c8f0 --- /dev/null +++ b/science/tweedledum/pkg-plist @@ -0,0 +1,119 @@ +include/tweedledum/Decomposition/BarencoDecomposer.h +include/tweedledum/Decomposition/BridgeDecomposer.h +include/tweedledum/Decomposition/OneQubitDecomposer.h +include/tweedledum/Decomposition/ParityDecomposer.h +include/tweedledum/Generators/adder.h +include/tweedledum/Generators/less_than.h +include/tweedledum/IR/Cbit.h +include/tweedledum/IR/Circuit.h +include/tweedledum/IR/Instruction.h +include/tweedledum/IR/Operator.h +include/tweedledum/IR/OperatorTraits.h +include/tweedledum/IR/Qubit.h +include/tweedledum/IR/WireStorage.h +include/tweedledum/Operators/All.h +include/tweedledum/Operators/Extension.h +include/tweedledum/Operators/Extension/Bridge.h +include/tweedledum/Operators/Extension/Clifford.h +include/tweedledum/Operators/Extension/LogicNetwork.h +include/tweedledum/Operators/Extension/Parity.h +include/tweedledum/Operators/Extension/Permutation.h +include/tweedledum/Operators/Extension/TruthTable.h +include/tweedledum/Operators/Extension/Unitary.h +include/tweedledum/Operators/Ising.h +include/tweedledum/Operators/Ising/Rxx.h +include/tweedledum/Operators/Ising/Ryy.h +include/tweedledum/Operators/Ising/Rzz.h +include/tweedledum/Operators/Meta.h +include/tweedledum/Operators/Meta/Barrier.h +include/tweedledum/Operators/Reversible.h +include/tweedledum/Operators/Standard.h +include/tweedledum/Operators/Standard/H.h +include/tweedledum/Operators/Standard/Measure.h +include/tweedledum/Operators/Standard/P.h +include/tweedledum/Operators/Standard/Rx.h +include/tweedledum/Operators/Standard/Ry.h +include/tweedledum/Operators/Standard/Rz.h +include/tweedledum/Operators/Standard/S.h +include/tweedledum/Operators/Standard/Swap.h +include/tweedledum/Operators/Standard/Sx.h +include/tweedledum/Operators/Standard/T.h +include/tweedledum/Operators/Standard/U.h +include/tweedledum/Operators/Standard/X.h +include/tweedledum/Operators/Standard/Y.h +include/tweedledum/Operators/Standard/Z.h +include/tweedledum/Operators/Utils.h +include/tweedledum/Parser/qasm.h +include/tweedledum/Parser/tfc.h +include/tweedledum/Passes/Analysis.h +include/tweedledum/Passes/Analysis/compute_alap_layers.h +include/tweedledum/Passes/Analysis/compute_asap_layers.h +include/tweedledum/Passes/Analysis/compute_critical_paths.h +include/tweedledum/Passes/Analysis/compute_cuts.h +include/tweedledum/Passes/Analysis/compute_depth.h +include/tweedledum/Passes/Analysis/count_operators.h +include/tweedledum/Passes/Decomposition.h +include/tweedledum/Passes/Decomposition/barenco_decomp.h +include/tweedledum/Passes/Decomposition/bridge_decomp.h +include/tweedledum/Passes/Decomposition/one_qubit_decomp.h +include/tweedledum/Passes/Decomposition/parity_decomp.h +include/tweedledum/Passes/Mapping.h +include/tweedledum/Passes/Mapping/Placer/ApprxSatPlacer.h +include/tweedledum/Passes/Mapping/Placer/LinePlacer.h +include/tweedledum/Passes/Mapping/Placer/RandomPlacer.h +include/tweedledum/Passes/Mapping/Placer/SatPlacer.h +include/tweedledum/Passes/Mapping/Placer/TrivialPlacer.h +include/tweedledum/Passes/Mapping/RePlacer/JitRePlacer.h +include/tweedledum/Passes/Mapping/RePlacer/SabreRePlacer.h +include/tweedledum/Passes/Mapping/Router/BridgeRouter.h +include/tweedledum/Passes/Mapping/Router/JitRouter.h +include/tweedledum/Passes/Mapping/Router/SabreRouter.h +include/tweedledum/Passes/Mapping/bridge_map.h +include/tweedledum/Passes/Mapping/jit_map.h +include/tweedledum/Passes/Mapping/sabre_map.h +include/tweedledum/Passes/Mapping/sat_map.h +include/tweedledum/Passes/Optimization.h +include/tweedledum/Passes/Optimization/gate_cancellation.h +include/tweedledum/Passes/Optimization/linear_resynth.h +include/tweedledum/Passes/Optimization/phase_folding.h +include/tweedledum/Passes/Optimization/steiner_resynth.h +include/tweedledum/Passes/Simulation/simulate_classically.h +include/tweedledum/Passes/Utility.h +include/tweedledum/Passes/Utility/inverse.h +include/tweedledum/Passes/Utility/reverse.h +include/tweedledum/Passes/Utility/shallow_duplicate.h +include/tweedledum/Synthesis/Synthesis.h +include/tweedledum/Synthesis/a_star_swap_synth.h +include/tweedledum/Synthesis/all_linear_synth.h +include/tweedledum/Synthesis/cx_dihedral_synth.h +include/tweedledum/Synthesis/decomp_synth.h +include/tweedledum/Synthesis/diagonal_synth.h +include/tweedledum/Synthesis/gray_synth.h +include/tweedledum/Synthesis/lhrs_synth.h +include/tweedledum/Synthesis/linear_synth.h +include/tweedledum/Synthesis/pkrm_synth.h +include/tweedledum/Synthesis/pprm_synth.h +include/tweedledum/Synthesis/sat_swap_synth.h +include/tweedledum/Synthesis/spectrum_synth.h +include/tweedledum/Synthesis/steiner_gauss_synth.h +include/tweedledum/Synthesis/transform_synth.h +include/tweedledum/Synthesis/xag_synth.h +include/tweedledum/Target/Device.h +include/tweedledum/Target/Mapping.h +include/tweedledum/Target/Placement.h +include/tweedledum/Utils/Allocators.h +include/tweedledum/Utils/Classical/xag_optimize.h +include/tweedledum/Utils/Classical/xag_simulate.h +include/tweedledum/Utils/Classical/xag_stats.h +include/tweedledum/Utils/Cut.h +include/tweedledum/Utils/DynamicBitset.h +include/tweedledum/Utils/Hash.h +include/tweedledum/Utils/Intrinsics.h +include/tweedledum/Utils/LinPhasePoly.h +include/tweedledum/Utils/Matrix.h +include/tweedledum/Utils/Numbers.h +include/tweedledum/Utils/SmallVector.h +include/tweedledum/Utils/Source.h +include/tweedledum/Utils/SourceManager.h +include/tweedledum/Utils/Visualization/string_utf8.h +lib/libtweedledum.so