From eba506a209d36d2be6923a0b12ca412a8f280d0a Mon Sep 17 00:00:00 2001 From: Melf Date: Thu, 11 Jan 2024 14:39:45 +0000 Subject: [PATCH] add copyright to files --- pytket/extensions/pennylane/__init__.py | 13 +++++++++++++ pytket/extensions/pennylane/pennylane_convert.py | 13 +++++++++++++ pytket/extensions/pennylane/pytket_device.py | 13 +++++++++++++ setup.py | 13 +++++++++++++ 4 files changed, 52 insertions(+) diff --git a/pytket/extensions/pennylane/__init__.py b/pytket/extensions/pennylane/__init__.py index 31bbc0e..073a666 100644 --- a/pytket/extensions/pennylane/__init__.py +++ b/pytket/extensions/pennylane/__init__.py @@ -1,3 +1,16 @@ +# Copyright 2020-2024 Cambridge Quantum Computing +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from ._metadata import __extension_version__, __extension_name__ from .pytket_device import PytketDevice from .pennylane_convert import pennylane_to_tk diff --git a/pytket/extensions/pennylane/pennylane_convert.py b/pytket/extensions/pennylane/pennylane_convert.py index c7d2e63..d2aeb8e 100644 --- a/pytket/extensions/pennylane/pennylane_convert.py +++ b/pytket/extensions/pennylane/pennylane_convert.py @@ -1,3 +1,16 @@ +# Copyright 2020-2024 Cambridge Quantum Computing +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import List, OrderedDict, cast from numpy import pi as PI from pennylane.operation import Operation # type: ignore diff --git a/pytket/extensions/pennylane/pytket_device.py b/pytket/extensions/pennylane/pytket_device.py index a396916..6c7b0fa 100644 --- a/pytket/extensions/pennylane/pytket_device.py +++ b/pytket/extensions/pennylane/pytket_device.py @@ -1,3 +1,16 @@ +# Copyright 2020-2024 Cambridge Quantum Computing +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from typing import cast, Any, Dict, Iterable, List, Optional, Union import numpy as np diff --git a/setup.py b/setup.py index 4e40376..9d9b2d6 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,16 @@ +# Copyright 2020-2024 Cambridge Quantum Computing +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import shutil import os from setuptools import setup, find_namespace_packages # type: ignore