diff --git a/.yamllint.yaml b/.yamllint.yaml index 003eb5d56..64b39a528 100644 --- a/.yamllint.yaml +++ b/.yamllint.yaml @@ -1,3 +1,17 @@ +# Copyright 2025 The TensorFlow Quantum Authors +# +# 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. + # Summary: yamllint configuration for TensorFlow Quantum. # See https://yamllint.readthedocs.io/ for info about configuration options. diff --git a/benchmarks/BUILD b/benchmarks/BUILD index fd4e75c2e..707479790 100644 --- a/benchmarks/BUILD +++ b/benchmarks/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/benchmarks/__init__.py b/benchmarks/__init__.py index e69de29bb..c172b454e 100644 --- a/benchmarks/__init__.py +++ b/benchmarks/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. diff --git a/benchmarks/scripts/BUILD b/benchmarks/scripts/BUILD index 095a10d74..f5693b352 100644 --- a/benchmarks/scripts/BUILD +++ b/benchmarks/scripts/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/benchmarks/scripts/__init__.py b/benchmarks/scripts/__init__.py index e69de29bb..c172b454e 100644 --- a/benchmarks/scripts/__init__.py +++ b/benchmarks/scripts/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. diff --git a/benchmarks/scripts/models/BUILD b/benchmarks/scripts/models/BUILD index e5bd16e60..4036827f4 100644 --- a/benchmarks/scripts/models/BUILD +++ b/benchmarks/scripts/models/BUILD @@ -1,21 +1,35 @@ -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) - -# Export for the PIP package. -exports_files(["__init__.py"]) - -py_binary( - name = "random_clifford_circuit", - srcs = ["random_clifford_circuit.py"], - python_version = "PY3", -) - -py_test( - name = "random_clifford_circuit_test", - srcs = ["random_clifford_circuit_test.py"], - python_version = "PY3", - deps = [ - ":random_clifford_circuit", - ], -) +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) + +# Export for the PIP package. +exports_files(["__init__.py"]) + +py_binary( + name = "random_clifford_circuit", + srcs = ["random_clifford_circuit.py"], + python_version = "PY3", +) + +py_test( + name = "random_clifford_circuit_test", + srcs = ["random_clifford_circuit_test.py"], + python_version = "PY3", + deps = [ + ":random_clifford_circuit", + ], +) diff --git a/release/BUILD b/release/BUILD index 7212cb1d3..f23d8528f 100644 --- a/release/BUILD +++ b/release/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + licenses(["notice"]) sh_binary( diff --git a/release/__init__.py b/release/__init__.py index e69de29bb..c172b454e 100644 --- a/release/__init__.py +++ b/release/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. diff --git a/tensorflow_quantum/BUILD b/tensorflow_quantum/BUILD index fd4e75c2e..707479790 100644 --- a/tensorflow_quantum/BUILD +++ b/tensorflow_quantum/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/tensorflow_quantum/core/BUILD b/tensorflow_quantum/core/BUILD index a7268b652..2dbe3a821 100644 --- a/tensorflow_quantum/core/BUILD +++ b/tensorflow_quantum/core/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/tensorflow_quantum/core/ops/BUILD b/tensorflow_quantum/core/ops/BUILD index 504cc2657..23febcf2d 100644 --- a/tensorflow_quantum/core/ops/BUILD +++ b/tensorflow_quantum/core/ops/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + # load op_wrapper package(default_visibility = ["//visibility:public"]) diff --git a/tensorflow_quantum/core/ops/math_ops/BUILD b/tensorflow_quantum/core/ops/math_ops/BUILD index 3c390f8e3..61fbde74c 100644 --- a/tensorflow_quantum/core/ops/math_ops/BUILD +++ b/tensorflow_quantum/core/ops/math_ops/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + # load op_wrapper package(default_visibility = ["//visibility:public"]) diff --git a/tensorflow_quantum/core/ops/noise/BUILD b/tensorflow_quantum/core/ops/noise/BUILD index 326f34f99..1ace496d1 100644 --- a/tensorflow_quantum/core/ops/noise/BUILD +++ b/tensorflow_quantum/core/ops/noise/BUILD @@ -1,3 +1,17 @@ +# Copyright 2021 The TensorFlow Quantum Authors +# +# 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. + # load op_wrapper package(default_visibility = ["//visibility:public"]) @@ -129,4 +143,3 @@ py_test( "//tensorflow_quantum/python:util", ], ) - diff --git a/tensorflow_quantum/core/proto/BUILD b/tensorflow_quantum/core/proto/BUILD index 65224465b..7134fd387 100644 --- a/tensorflow_quantum/core/proto/BUILD +++ b/tensorflow_quantum/core/proto/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") package(default_visibility = ["//visibility:public"]) diff --git a/tensorflow_quantum/core/proto/pauli_sum.proto b/tensorflow_quantum/core/proto/pauli_sum.proto index b0aa200b8..06e10d8ea 100644 --- a/tensorflow_quantum/core/proto/pauli_sum.proto +++ b/tensorflow_quantum/core/proto/pauli_sum.proto @@ -1,3 +1,17 @@ +// Copyright 2020 The TensorFlow Quantum Authors +// +// 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. + syntax = "proto3"; package tfq.proto; diff --git a/tensorflow_quantum/core/proto/program.proto b/tensorflow_quantum/core/proto/program.proto index ed408572d..2e3b3455c 100644 --- a/tensorflow_quantum/core/proto/program.proto +++ b/tensorflow_quantum/core/proto/program.proto @@ -1,3 +1,17 @@ +// Copyright 2021 The TensorFlow Quantum Authors +// +// 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. + syntax = "proto3"; package tfq.proto; @@ -167,4 +181,4 @@ message ArgFunction { // The arguments to the function. repeated Arg args = 2; -} \ No newline at end of file +} diff --git a/tensorflow_quantum/core/proto/projector_sum.proto b/tensorflow_quantum/core/proto/projector_sum.proto index d51df1467..92ef30693 100644 --- a/tensorflow_quantum/core/proto/projector_sum.proto +++ b/tensorflow_quantum/core/proto/projector_sum.proto @@ -1,3 +1,17 @@ +// Copyright 2021 The TensorFlow Quantum Authors +// +// 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. + syntax = "proto3"; package tfq.proto; @@ -20,4 +34,3 @@ message ProjectorDictEntry { // False means |0> and true means |1>. bool basis_state = 2; } - diff --git a/tensorflow_quantum/core/serialize/BUILD b/tensorflow_quantum/core/serialize/BUILD index fa28d20e6..87a0b626e 100644 --- a/tensorflow_quantum/core/serialize/BUILD +++ b/tensorflow_quantum/core/serialize/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/tensorflow_quantum/core/src/BUILD b/tensorflow_quantum/core/src/BUILD index df1e0e0e9..0f8d6b078 100644 --- a/tensorflow_quantum/core/src/BUILD +++ b/tensorflow_quantum/core/src/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/tensorflow_quantum/datasets/BUILD b/tensorflow_quantum/datasets/BUILD index cabfb790f..c9d62e7cb 100644 --- a/tensorflow_quantum/datasets/BUILD +++ b/tensorflow_quantum/datasets/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/tensorflow_quantum/python/BUILD b/tensorflow_quantum/python/BUILD index d69396775..24efa6ab9 100644 --- a/tensorflow_quantum/python/BUILD +++ b/tensorflow_quantum/python/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/tensorflow_quantum/python/differentiators/BUILD b/tensorflow_quantum/python/differentiators/BUILD index 9e5f28aab..bcce01c70 100644 --- a/tensorflow_quantum/python/differentiators/BUILD +++ b/tensorflow_quantum/python/differentiators/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/tensorflow_quantum/python/layers/BUILD b/tensorflow_quantum/python/layers/BUILD index 2f835d74e..874c5d044 100644 --- a/tensorflow_quantum/python/layers/BUILD +++ b/tensorflow_quantum/python/layers/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/tensorflow_quantum/python/layers/circuit_construction/BUILD b/tensorflow_quantum/python/layers/circuit_construction/BUILD index 9bf9a3919..5e3ca7d72 100644 --- a/tensorflow_quantum/python/layers/circuit_construction/BUILD +++ b/tensorflow_quantum/python/layers/circuit_construction/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/tensorflow_quantum/python/layers/circuit_executors/BUILD b/tensorflow_quantum/python/layers/circuit_executors/BUILD index ae8feff9c..3222d1475 100644 --- a/tensorflow_quantum/python/layers/circuit_executors/BUILD +++ b/tensorflow_quantum/python/layers/circuit_executors/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/tensorflow_quantum/python/layers/high_level/BUILD b/tensorflow_quantum/python/layers/high_level/BUILD index aca7f6625..7617502b9 100644 --- a/tensorflow_quantum/python/layers/high_level/BUILD +++ b/tensorflow_quantum/python/layers/high_level/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) @@ -96,7 +110,7 @@ py_test( "//tensorflow_quantum/python:util", ], ) - + py_test( name = "noisy_pqc_test", srcs = ["noisy_pqc_test.py"], diff --git a/tensorflow_quantum/python/optimizers/BUILD b/tensorflow_quantum/python/optimizers/BUILD index 98e5fb55e..d819d540f 100755 --- a/tensorflow_quantum/python/optimizers/BUILD +++ b/tensorflow_quantum/python/optimizers/BUILD @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + package(default_visibility = ["//visibility:public"]) licenses(["notice"]) diff --git a/third_party/BUILD b/third_party/BUILD index e69de29bb..c172b454e 100644 --- a/third_party/BUILD +++ b/third_party/BUILD @@ -0,0 +1,13 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. diff --git a/third_party/tf/BUILD b/third_party/tf/BUILD index e69de29bb..c172b454e 100644 --- a/third_party/tf/BUILD +++ b/third_party/tf/BUILD @@ -0,0 +1,13 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. diff --git a/third_party/tf/tf_configure.bzl b/third_party/tf/tf_configure.bzl index 2f18f4cb5..fedca1e38 100644 --- a/third_party/tf/tf_configure.bzl +++ b/third_party/tf/tf_configure.bzl @@ -1,3 +1,17 @@ +# Copyright 2020 The TensorFlow Quantum Authors +# +# 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. + """Setup TensorFlow as external dependency""" _TF_HEADER_DIR = "TF_HEADER_DIR" @@ -144,7 +158,7 @@ def _symlink_genrule_for_dir( tf_pip_dir_rename_pair_len = len(tf_pip_dir_rename_pair) if tf_pip_dir_rename_pair_len != 0 and tf_pip_dir_rename_pair_len !=2: _fail("The size of argument tf_pip_dir_rename_pair should be either 0 or 2, but %d is given." % tf_pip_dir_rename_pair_len) - + if src_dir != None: src_dir = _norm_path(src_dir) dest_dir = _norm_path(dest_dir) @@ -158,7 +172,7 @@ def _symlink_genrule_for_dir( src_files = files.splitlines() command = [] outs = [] - + for i in range(len(dest_files)): if dest_files[i] != "": # If we have only one file to link we do not want to use the dest_dir, as