2020-08-17 06:52:04 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-quantum-blackbird
|
|
|
|
|
#
|
2023-03-06 09:31:59 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-08-17 06:52:04 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define packagename quantum-blackbird
|
|
|
|
|
%define skip_python2 1
|
2021-04-26 05:53:53 +00:00
|
|
|
%define skip_python36 1
|
2020-08-17 06:52:04 +00:00
|
|
|
Name: python-quantum-blackbird
|
2023-03-06 09:31:59 +00:00
|
|
|
Version: 0.5.0
|
2020-08-17 06:52:04 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Quantum assembly language for continuous-variable quantum computation
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://github.com/XanaduAI/blackbird
|
|
|
|
|
Source: https://github.com/XanaduAI/blackbird/archive/v%{version}.tar.gz#/blackbird-%{version}.tar.gz
|
2023-03-06 09:31:59 +00:00
|
|
|
BuildRequires: %{python_module antlr4-python3-runtime >= 4.9.2}
|
2020-08-17 06:52:04 +00:00
|
|
|
BuildRequires: %{python_module networkx}
|
|
|
|
|
BuildRequires: %{python_module numpy >= 1.16}
|
2020-09-04 07:20:51 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2020-08-17 06:52:04 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: %{python_module sympy}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
BuildRequires: uuid-devel
|
2023-03-06 09:31:59 +00:00
|
|
|
Requires: python-antlr4-python3-runtime >= 4.9.2
|
2020-08-17 06:52:04 +00:00
|
|
|
Requires: python-networkx
|
|
|
|
|
Requires: python-numpy >= 1.16
|
|
|
|
|
Requires: python-sympy
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Blackbird is a quantum assembly language for continuous-variable quantum
|
|
|
|
|
computation, that can be used to program Xanadu's quantum photonics
|
|
|
|
|
hardware and Strawberry Fields simulator.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-05-12 13:52:45 +00:00
|
|
|
%autosetup -p1 -n blackbird-%{version}
|
2020-08-17 06:52:04 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
# Fix E: spurious-executable-perm of README.rst
|
|
|
|
|
chmod 644 README.rst
|
|
|
|
|
|
|
|
|
|
%check
|
2023-03-06 09:31:59 +00:00
|
|
|
# Broken tests with numpy 1.24 gh#XanaduAI/blackbird#54
|
|
|
|
|
donttest="scalar_array or test_array_variable_expression"
|
|
|
|
|
%pytest -k "not ($donttest)"
|
2020-08-17 06:52:04 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python_sitelib}/*egg-info
|
|
|
|
|
%{python_sitelib}/blackbird
|
|
|
|
|
|
|
|
|
|
%changelog
|