Skip to content

quantum++ 6.0 #220081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions Formula/q/quantum++.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
class Quantumxx < Formula
desc "Modern C++ quantum computing library"
homepage "https://github.com/softwareQinc/qpp"
url "https://github.com/softwareQinc/qpp/archive/refs/tags/v5.1.tar.gz"
sha256 "971483eefbf5e4d427553276d9bfd237e3d22ea8757a1ee7afa25417aca158ea"
url "https://github.com/softwareQinc/qpp/archive/refs/tags/v6.0.tar.gz"
sha256 "cdd6acf287b2f2dd124120ef2aba85660eee9482f5484dbd229c93b53a7d8a54"
license "MIT"
head "https://github.com/softwareQinc/qpp.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, all: "0ff3efd01b8a28045694ee46bc49bdbf510652e6318fcf3a7976b545aed1e53d"
sha256 cellar: :any_skip_relocation, all: "13832215cff599c6d60a58a3c40d0206d3f1082c0c42f1a8b9ee2a3c49087be8"
end

depends_on "cmake" => [:build, :test]
depends_on "googletest" => :build
depends_on "eigen"
depends_on "pybind11"

def install
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--install", "build"
args = %w[
-DFETCHCONTENT_FULLY_DISCONNECTED=OFF
-DHOMEBREW_ALLOW_FETCHCONTENT=ON
]
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build", "--target", "install"
end

test do
Expand All @@ -29,7 +36,7 @@ def install
CMAKE
(testpath/"qpp_test.cpp").write <<~CPP
#include <iostream>
#include <qpp/qpp.h>
#include <qpp/qpp.hpp>

int main() {
using namespace qpp;
Expand Down
Loading