From ac92250e29e3d7ee09f60840fb4cc055bee6f5fd Mon Sep 17 00:00:00 2001 From: Mikhail Andrenkov Date: Tue, 25 May 2021 16:18:20 -0400 Subject: [PATCH 1/2] Remove license headers from 'xir' Python module --- python/tests/xir/test_integration.py | 14 -------------- python/tests/xir/test_io.py | 16 +--------------- python/tests/xir/test_program.py | 14 -------------- python/tests/xir/test_utils.py | 16 +--------------- python/xir/__init__.py | 14 -------------- python/xir/_version.py | 14 -------------- python/xir/interfaces/__init__.py | 14 -------------- python/xir/interfaces/strawberryfields_io.py | 14 -------------- python/xir/ir.lark | 14 -------------- python/xir/parser.py | 14 -------------- python/xir/program.py | 14 -------------- python/xir/utils.py | 14 -------------- 12 files changed, 2 insertions(+), 170 deletions(-) diff --git a/python/tests/xir/test_integration.py b/python/tests/xir/test_integration.py index 66d8239a..7b746fb7 100644 --- a/python/tests/xir/test_integration.py +++ b/python/tests/xir/test_integration.py @@ -1,17 +1,3 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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. - """Integration tests for the IR""" import pytest diff --git a/python/tests/xir/test_io.py b/python/tests/xir/test_io.py index 045ec75b..734dca59 100644 --- a/python/tests/xir/test_io.py +++ b/python/tests/xir/test_io.py @@ -1,18 +1,4 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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. - -"""Tests for the interfaces module""" +"""Unit tests for the interfaces module""" from decimal import Decimal from typing import List, Tuple diff --git a/python/tests/xir/test_program.py b/python/tests/xir/test_program.py index 5a76b7bd..1bf66db5 100644 --- a/python/tests/xir/test_program.py +++ b/python/tests/xir/test_program.py @@ -1,17 +1,3 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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. - """Unit tests for the program class""" from decimal import Decimal diff --git a/python/tests/xir/test_utils.py b/python/tests/xir/test_utils.py index f470b704..6af5ebbf 100644 --- a/python/tests/xir/test_utils.py +++ b/python/tests/xir/test_utils.py @@ -1,18 +1,4 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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. - -"""Unit test for the utils module""" +"""Unit tests for the utils module""" import pytest diff --git a/python/xir/__init__.py b/python/xir/__init__.py index 417c9bac..7a104883 100644 --- a/python/xir/__init__.py +++ b/python/xir/__init__.py @@ -1,15 +1 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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 .parser import XIRTransformer, xir_parser diff --git a/python/xir/_version.py b/python/xir/_version.py index 4d81295d..0b5d834b 100644 --- a/python/xir/_version.py +++ b/python/xir/_version.py @@ -1,17 +1,3 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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. - """The current version number. Uses semantic versioning (https://semver.org)""" __version__ = "0.1.0" diff --git a/python/xir/interfaces/__init__.py b/python/xir/interfaces/__init__.py index bc161c39..a10af5e7 100644 --- a/python/xir/interfaces/__init__.py +++ b/python/xir/interfaces/__init__.py @@ -1,15 +1 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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 .strawberryfields_io import to_program, to_xir, find_number_of_modes diff --git a/python/xir/interfaces/strawberryfields_io.py b/python/xir/interfaces/strawberryfields_io.py index 9d989787..c6734570 100644 --- a/python/xir/interfaces/strawberryfields_io.py +++ b/python/xir/interfaces/strawberryfields_io.py @@ -1,17 +1,3 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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 decimal import Decimal import strawberryfields as sf from strawberryfields import ops diff --git a/python/xir/ir.lark b/python/xir/ir.lark index bac3baa2..91ffeb4b 100644 --- a/python/xir/ir.lark +++ b/python/xir/ir.lark @@ -1,17 +1,3 @@ -// Copyright 2021 Xanadu Quantum Technologies Inc. - -// 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. - // IR grammar program: (include | declarations | circuit)* include: "use" name ";" diff --git a/python/xir/parser.py b/python/xir/parser.py index ebee48c4..e43ed6d7 100644 --- a/python/xir/parser.py +++ b/python/xir/parser.py @@ -1,17 +1,3 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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. - """This module contains the XIRTransformer and xir_parser""" from decimal import Decimal from pathlib import Path diff --git a/python/xir/program.py b/python/xir/program.py index ed686d37..f21f9a1c 100644 --- a/python/xir/program.py +++ b/python/xir/program.py @@ -1,17 +1,3 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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 re import warnings from decimal import Decimal diff --git a/python/xir/utils.py b/python/xir/utils.py index cefa7e0a..7bdf549f 100644 --- a/python/xir/utils.py +++ b/python/xir/utils.py @@ -1,17 +1,3 @@ -# Copyright 2021 Xanadu Quantum Technologies Inc. - -# 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. - """This module contains the utility functions used when parsing""" import re From 702081d929bc96152b1867db932e3dde83858ab6 Mon Sep 17 00:00:00 2001 From: Mikhail Andrenkov Date: Tue, 25 May 2021 16:35:49 -0400 Subject: [PATCH 2/2] Update changelog --- .github/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 9d51d93b..d8ca3fe1 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -30,6 +30,8 @@ ### Documentation +* The license comment headers at the top of the IR source files have been removed. [(#14)](https://github.com/XanaduAI/jet/pull/14) + ### Contributors This release contains contributions from (in alphabetical order):