-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
quantum++ 6.0 #220081
Conversation
|
@botantony Do you mind please adding the dependency to the formula ruby file? Thanks!! |
diff --git a/Formula/q/quantum++.rb b/Formula/q/quantum++.rb
index 8c9df88f4d7..8e8e6cde74e 100644
--- a/Formula/q/quantum++.rb
+++ b/Formula/q/quantum++.rb
@@ -1,19 +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"
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
+ args = %w[
+ -DFETCHCONTENT_FULLY_DISCONNECTED=OFF
+ -DHOMEBREW_ALLOW_FETCHCONTENT=ON
+ ]
+ system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
+ system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
@@ -29,7 +37,7 @@ class Quantumxx < Formula
CMAKE
(testpath/"qpp_test.cpp").write <<~CPP
#include <iostream>
- #include <qpp/qpp.h>
+ #include <qpp/qpp.hpp>
int main() {
using namespace qpp;
|
oh, i see it is a header-only library, |
Agree. It's only there for Windows compatibility (although brew doesn't support Windows yet), since on Win, |
9ad8078
to
ecc3fc0
Compare
Thanks for the fix @botantony @daeho-ro ! |
🤖 An automated task has requested bottles to be published to this PR. Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch. |
Created by
brew bump
Created with
brew bump-formula-pr
.release notes