Skip to content

Commit

Permalink
Clean build (#7)
Browse files Browse the repository at this point in the history
* Add mandatory python_version into py_test & py_binary

* Add missing ":util" into statespace_avx in BUILD
  • Loading branch information
jaeyoo committed Feb 9, 2020
1 parent c003598 commit 5e1f75c
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benchmarks/scripts/BUILD
Expand Up @@ -8,6 +8,7 @@ exports_files(["__init__.py"])
py_test(
name = "benchmark_clifford_circuit",
srcs = ["benchmark_clifford_circuit.py"],
python_version = "PY3",
deps = [
"//tensorflow_quantum/core/ops:tfq_simulate_ops_py",
"//tensorflow_quantum/core/serialize:serializer",
Expand All @@ -18,6 +19,7 @@ py_test(
py_test(
name = "benchmark_random_circuit",
srcs = ["benchmark_random_circuit.py"],
python_version = "PY3",
deps = [
"//tensorflow_quantum/core/ops:tfq_simulate_ops_py",
"//tensorflow_quantum/core/serialize:serializer",
Expand All @@ -28,6 +30,7 @@ py_test(
py_test(
name = "benchmark_op_gradients",
srcs = ["benchmark_op_gradients.py"],
python_version = "PY3",
deps = [
"//tensorflow_quantum/core/ops:batch_util",
"//tensorflow_quantum/core/ops:cirq_ops",
Expand All @@ -52,6 +55,7 @@ py_library(
py_test(
name = "benchmark_util_test",
srcs = ["benchmark_util_test.py"],
python_version = "PY3",
deps = [
":benchmark_util",
"@local_config_tf//:test_log_pb2",
Expand Down
1 change: 1 addition & 0 deletions benchmarks/scripts/differentiators/BUILD
Expand Up @@ -8,6 +8,7 @@ exports_files(["__init__.py"])
py_test(
name = "convergence_test",
srcs = ["convergence_test.py"],
python_version = "PY3",
deps = [
"//tensorflow_quantum/core/ops:batch_util",
"//tensorflow_quantum/core/ops:cirq_ops",
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/scripts/models/BUILD
Expand Up @@ -8,11 +8,13 @@ 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",
],
Expand Down
6 changes: 6 additions & 0 deletions tensorflow_quantum/core/ops/BUILD
Expand Up @@ -120,6 +120,7 @@ py_library(
py_test(
name = "tfq_simulate_ops_test",
srcs = ["tfq_simulate_ops_test.py"],
python_version = "PY3",
deps = [
":tfq_simulate_ops_py",
"//tensorflow_quantum/python:util",
Expand All @@ -140,6 +141,7 @@ py_test(
name = "circuit_execution_ops_test",
timeout = "eternal",
srcs = ["circuit_execution_ops_test.py"],
python_version = "PY3",
deps = [
":circuit_execution_ops",
"//tensorflow_quantum/python:util",
Expand All @@ -158,6 +160,7 @@ py_library(
py_test(
name = "cirq_ops_test",
srcs = ["cirq_ops_test.py"],
python_version = "PY3",
deps = [
":batch_util",
":cirq_ops",
Expand All @@ -178,6 +181,7 @@ py_test(
name = "batch_util_test",
timeout = "eternal",
srcs = ["batch_util_test.py"],
python_version = "PY3",
deps = [
":batch_util",
"//tensorflow_quantum/python:util",
Expand All @@ -196,6 +200,7 @@ py_library(
py_test(
name = "tfq_ps_util_ops_test",
srcs = ["tfq_ps_util_ops_test.py"],
python_version = "PY3",
deps = [
":tfq_ps_util_ops_py",
"//tensorflow_quantum/python:util",
Expand All @@ -214,6 +219,7 @@ py_library(
py_test(
name = "tfq_utility_ops_test",
srcs = ["tfq_utility_ops_test.py"],
python_version = "PY3",
deps = [
":tfq_utility_ops_py",
"//tensorflow_quantum/core/serialize:serializer",
Expand Down
1 change: 1 addition & 0 deletions tensorflow_quantum/core/qsim/BUILD
Expand Up @@ -185,6 +185,7 @@ cc_library(
hdrs = ["statespace_avx.h"],
deps = [
":statespace",
":util",
],
)

Expand Down
1 change: 1 addition & 0 deletions tensorflow_quantum/core/serialize/BUILD
Expand Up @@ -16,6 +16,7 @@ py_library(
py_test(
name = "serializer_test",
srcs = ["serializer_test.py"],
python_version = "PY3",
deps = [
":serializer",
],
Expand Down
1 change: 1 addition & 0 deletions tensorflow_quantum/datasets/BUILD
Expand Up @@ -13,6 +13,7 @@ py_library(
py_test(
name = "cluster_state_test",
srcs = ["cluster_state_test.py"],
python_version = "PY3",
deps = [
":cluster_state",
],
Expand Down
1 change: 1 addition & 0 deletions tensorflow_quantum/python/BUILD
Expand Up @@ -16,6 +16,7 @@ py_library(
py_test(
name = "util_test",
srcs = ["util_test.py"],
python_version = "PY3",
deps = [
":util",
"//tensorflow_quantum/core/serialize:serializer",
Expand Down
7 changes: 7 additions & 0 deletions tensorflow_quantum/python/differentiators/BUILD
Expand Up @@ -38,6 +38,7 @@ py_library(
py_test(
name = "differentiator_test",
srcs = ["differentiator_test.py"],
python_version = "PY3",
deps = [
":differentiator",
],
Expand All @@ -46,6 +47,7 @@ py_test(
py_test(
name = "linear_combination_test",
srcs = ["linear_combination_test.py"],
python_version = "PY3",
deps = [
":linear_combination",
"//tensorflow_quantum/core/ops:circuit_execution_ops",
Expand All @@ -57,6 +59,7 @@ py_test(
name = "parameter_shift_test",
timeout = "long",
srcs = ["parameter_shift_test.py"],
python_version = "PY3",
deps = [
":parameter_shift",
"//tensorflow_quantum/core/ops:circuit_execution_ops",
Expand All @@ -68,6 +71,7 @@ py_test(
py_test(
name = "parameter_shift_util_test",
srcs = ["parameter_shift_util_test.py"],
python_version = "PY3",
deps = [
":parameter_shift_util",
"//tensorflow_quantum/python:util",
Expand All @@ -78,6 +82,7 @@ py_test(
name = "gradient_test",
timeout = "eternal",
srcs = ["gradient_test.py"],
python_version = "PY3",
deps = [
":linear_combination",
":parameter_shift",
Expand All @@ -100,6 +105,7 @@ py_library(
py_test(
name = "stochastic_differentiator_test",
srcs = ["stochastic_differentiator_test.py"],
python_version = "PY3",
deps = [
":stochastic_differentiator",
"//tensorflow_quantum/core/ops:circuit_execution_ops",
Expand All @@ -120,6 +126,7 @@ py_library(
py_test(
name = "stochastic_differentiator_util_test",
srcs = ["stochastic_differentiator_util_test.py"],
python_version = "PY3",
deps = [
":stochastic_differentiator_util",
],
Expand Down
Expand Up @@ -17,6 +17,7 @@ py_library(
py_test(
name = "elementary_test",
srcs = ["elementary_test.py"],
python_version = "PY3",
deps = [
":elementary",
"//tensorflow_quantum/python:util",
Expand Down
4 changes: 4 additions & 0 deletions tensorflow_quantum/python/layers/circuit_executors/BUILD
Expand Up @@ -49,6 +49,7 @@ py_library(
py_test(
name = "state_test",
srcs = ["state_test.py"],
python_version = "PY3",
deps = [
":state",
"//tensorflow_quantum/python:util",
Expand All @@ -58,6 +59,7 @@ py_test(
py_test(
name = "expectation_test",
srcs = ["expectation_test.py"],
python_version = "PY3",
deps = [
":expectation",
"//tensorflow_quantum/python:util",
Expand All @@ -69,6 +71,7 @@ py_test(
name = "sampled_expectation_test",
timeout = "eternal",
srcs = ["sampled_expectation_test.py"],
python_version = "PY3",
deps = [
":sampled_expectation",
"//tensorflow_quantum/python:util",
Expand All @@ -79,6 +82,7 @@ py_test(
py_test(
name = "sample_test",
srcs = ["sample_test.py"],
python_version = "PY3",
deps = [
":sample",
"//tensorflow_quantum/python:util",
Expand Down
2 changes: 2 additions & 0 deletions tensorflow_quantum/python/layers/high_level/BUILD
Expand Up @@ -30,6 +30,7 @@ py_library(
py_test(
name = "controlled_pqc_test",
srcs = ["controlled_pqc_test.py"],
python_version = "PY3",
deps = [
":controlled_pqc",
"//tensorflow_quantum/python:util",
Expand All @@ -39,6 +40,7 @@ py_test(
py_test(
name = "pqc_test",
srcs = ["pqc_test.py"],
python_version = "PY3",
deps = [
":pqc",
"//tensorflow_quantum/python:util",
Expand Down

0 comments on commit 5e1f75c

Please sign in to comment.