Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roll back to working state. #780

Merged
merged 50 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
cdd2ce7
Revert "Merge pull request #776 from Sinestro38/master"
MichaelBroughton Jun 12, 2023
99913bd
Revert "remove release notes md"
MichaelBroughton Jun 12, 2023
a413194
Revert "Merge remote-tracking branch 'forkB/fix_warnings'"
MichaelBroughton Jun 12, 2023
97a1818
Revert "Merge pull request #772 from Sinestro38/fix_license"
MichaelBroughton Jun 12, 2023
dde0bce
Revert "fix ubuntu version to 20.04"
MichaelBroughton Jun 12, 2023
849c5e0
Revert "[debug] get ubuntu version of runner"
MichaelBroughton Jun 12, 2023
e70b9eb
Revert "update ubuntu github runner from 18.04 to latest"
MichaelBroughton Jun 12, 2023
2aac191
Revert "update > to ~"
MichaelBroughton Jun 12, 2023
437aa5b
Revert "update cirq dependency news"
MichaelBroughton Jun 12, 2023
b84275b
Revert "Update release.md"
MichaelBroughton Jun 12, 2023
4d859a0
Revert "add notes"
MichaelBroughton Jun 12, 2023
5cc5cb3
Revert "update version num"
MichaelBroughton Jun 12, 2023
49f4b77
Revert "Update release.md"
MichaelBroughton Jun 12, 2023
5af15c8
Revert "Create release.md"
MichaelBroughton Jun 12, 2023
4a3a9d2
Revert "Merge branch 'master' into master"
MichaelBroughton Jun 12, 2023
7358b9d
Revert "Upgrade bazel version 5.3.0 and fix some typo in tf version (…
MichaelBroughton Jun 12, 2023
5f5b474
Revert "Merge pull request #3 from jaeyoo/pavan/remove_compute_small"
MichaelBroughton Jun 12, 2023
585b47d
Revert "Fix lint"
MichaelBroughton Jun 12, 2023
7044721
Revert "Fix lint"
MichaelBroughton Jun 12, 2023
86b31a2
Revert "Update release/BUILD with `if_cuda_is_configured`"
MichaelBroughton Jun 12, 2023
6f5b725
Revert "add :tfq_simulate_ops_cuquantum_py target to release BUILD"
MichaelBroughton Jun 12, 2023
47818a6
Revert "remove computeSmall from cuda and cuquantum kernels"
MichaelBroughton Jun 12, 2023
7413a70
Revert "Merge pull request #2 from jaeyoo/cuquantum_support"
MichaelBroughton Jun 12, 2023
303730b
Revert "Merge pull request #1 from jaeyoo/cuda_support"
MichaelBroughton Jun 12, 2023
028ee7d
Revert "Merge branch 'master' into cuda_support"
MichaelBroughton Jun 12, 2023
6c7ed1d
Revert "Add cuQuantum test (but failed at numeric diff test)"
MichaelBroughton Jun 12, 2023
5a4a6c7
Revert "Fix ComputeSmall and enable it."
MichaelBroughton Jun 12, 2023
2e08e5f
Revert "Fix tfq_simulate_ops_cuda op test."
MichaelBroughton Jun 12, 2023
9374a95
Revert "Temporarily turn on ComputeLarge always"
MichaelBroughton Jun 12, 2023
8a6a66a
Revert "Upgrade TF version from 2.7 to 2.11 (#749)"
MichaelBroughton Jun 12, 2023
ce3d14a
Revert "TFQ simulate expectation CUDA op"
MichaelBroughton Jun 12, 2023
8395581
Revert "Update ci_install bazel version, removed duplicated code lines."
MichaelBroughton Jun 12, 2023
7a80a46
Revert "Fix typo"
MichaelBroughton Jun 12, 2023
1e8499e
Revert "Upgrade seaborn version to 0.12.0"
MichaelBroughton Jun 12, 2023
d7347c4
Revert "Fix tutorial errors"
MichaelBroughton Jun 12, 2023
035013b
Revert "Fix tutorial error"
MichaelBroughton Jun 12, 2023
ea8536f
Revert "Upgrade the latest gym for notebook tutorial."
MichaelBroughton Jun 12, 2023
ec60c0f
Revert "Format optimizers"
MichaelBroughton Jun 12, 2023
c0be4b0
Revert "Format"
MichaelBroughton Jun 12, 2023
612dd41
Revert "Upgrade to TF v2.11"
MichaelBroughton Jun 12, 2023
5ac5dad
Upgrade TF version from 2.7 to 2.11 (#749)
jaeyoo Mar 20, 2023
e76bf5d
Upgrade bazel version 5.3.0 and fix some typo in tf version (#755)
jaeyoo Mar 28, 2023
1e092a7
fix compatability issues.
MichaelBroughton Jun 13, 2023
08ea108
re-trigger kokoro
MichaelBroughton Jun 13, 2023
03fb5a6
re-trigger kokoro
MichaelBroughton Jun 13, 2023
96c6010
re-trigger kokoro
MichaelBroughton Jun 13, 2023
218bc6a
re-trigger kokoro
MichaelBroughton Jun 13, 2023
34fc627
re-trigger kokoro
MichaelBroughton Jun 13, 2023
84b957c
Lower tolerances.
MichaelBroughton Jun 30, 2023
54df2d7
Bump CI python version.
MichaelBroughton Jun 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/cirq_compatibility.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Cirq Compatibility

on:
Expand All @@ -8,7 +7,7 @@ on:
jobs:
consistency:
name: Nightly Compatibility
runs-on: ubuntu-20.04
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
Expand Down
32 changes: 3 additions & 29 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,11 @@ cc_library(
],
)

# http_archive(
# name = "qsim",
# sha256 = "b9c1eba09a885a938b5e73dfc2e02f5231cf3b01d899415caa24769346a731d5",
# strip_prefix = "qsim-0.13.3",
# urls = ["https://github.com/quantumlib/qsim/archive/refs/tags/v0.13.3.zip"],
# )

# TODO: After merging this patch later into qsim mainstream, remove this and uncomment the above.
http_archive(
name = "qsim",
sha256 = "",
strip_prefix = "qsim-0.15.0-dev20230327_v3",
urls = ["https://github.com/jaeyoo/qsim/archive/refs/tags/v0.15.0+dev20230327_v3.tar.gz"],
sha256 = "b9c1eba09a885a938b5e73dfc2e02f5231cf3b01d899415caa24769346a731d5",
strip_prefix = "qsim-0.13.3",
urls = ["https://github.com/quantumlib/qsim/archive/refs/tags/v0.13.3.zip"],
)

http_archive(
Expand Down Expand Up @@ -81,21 +73,3 @@ bind(
actual = "@six_archive//:six",
)

new_local_repository(
name = "cuquantum_libs",
path = "/usr/local/google/home/jaeyoo/workspace/cuquantum-linux-x86_64-22.11.0.13-archive",
build_file_content = """
cc_library(
name = "custatevec_headers",
srcs = ["include/custatevec.h"],
visibility = ["//visibility:public"],
)

cc_library(
name = "custatevec",
srcs = ["lib/libcustatevec.so"],
visibility = ["//visibility:public"],
)
""",
)

2 changes: 1 addition & 1 deletion benchmarks/scripts/benchmark_clifford_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
"""Benchmark simulators against classically simulatable circuits."""
import os
import time
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/scripts/benchmark_op_gradients.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
"""Benchmark differentiator methods."""
import os
import time
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/scripts/benchmark_random_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
"""Benchmark simulators against classically intractable 'supremacy' circuits."""
import os
import time
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/scripts/benchmark_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
"""Utility functions for benchmark tools."""
import tensorflow as tf
import test_log_pb2
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/scripts/benchmark_util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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 utilities related to reading/running benchmarks."""
import os
import tempfile
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/scripts/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
"""Command line flags shared between benchmarks."""
from collections import namedtuple
from absl import flags as absl_flags
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/scripts/flags_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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 benchmark command line flags."""

import tensorflow as tf
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/scripts/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
# 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.
# =============================================================================
# ==============================================================================
2 changes: 1 addition & 1 deletion benchmarks/scripts/models/random_clifford_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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 Iterable

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/scripts/models/random_clifford_circuit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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 absl.testing import parameterized
import cirq
Expand Down
10 changes: 5 additions & 5 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================
PLATFORM="$(uname -s | tr 'A-Z' 'a-z')"

function write_to_bazelrc() {
Expand Down Expand Up @@ -62,11 +62,11 @@ while [[ "$TF_NEED_CUDA" == "" ]]; do
done

while [[ "$TF_CUDA_VERSION" == "" ]]; do
read -p "Are you building against TensorFlow 2.11(including RCs) or newer?[Y/n] " INPUT
read -p "Are you building against TensorFlow 2.1(including RCs) or newer?[Y/n] " INPUT
case $INPUT in
[Yy]* ) echo "Build against TensorFlow 2.11 or newer."; TF_CUDA_VERSION=11;;
[Nn]* ) echo "Build against TensorFlow <2.11."; TF_CUDA_VERSION=10.0;;
"" ) echo "Build against TensorFlow 2.11 or newer."; TF_CUDA_VERSION=11;;
[Yy]* ) echo "Build against TensorFlow 2.1 or newer."; TF_CUDA_VERSION=11;;
[Nn]* ) echo "Build against TensorFlow <2.1."; TF_CUDA_VERSION=10.0;;
"" ) echo "Build against TensorFlow 2.1 or newer."; TF_CUDA_VERSION=11;;
* ) echo "Invalid selection: " $INPUT;;
esac
done
Expand Down
2 changes: 1 addition & 1 deletion docs/_book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
upper_tabs:
# Tabs left of dropdown menu
- include: /_upper_tabs_left.yaml
Expand Down
2 changes: 1 addition & 1 deletion docs/_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
book_path: /quantum/_book.yaml
project_path: /quantum/_project.yaml
description: >
Expand Down
7 changes: 1 addition & 6 deletions release/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
load("@local_config_cuda//cuda:build_defs.bzl", "if_cuda_is_configured")

licenses(["notice"])

sh_binary(
Expand Down Expand Up @@ -68,8 +66,5 @@ sh_binary(
"//tensorflow_quantum/python:util",
"//tensorflow_quantum/python/optimizers:rotosolve_minimizer",
"//tensorflow_quantum/python/optimizers:spsa_minimizer",
] + if_cuda_is_configured([
"//tensorflow_quantum/core/ops:tfq_simulate_ops_cuda_py",
"//tensorflow_quantum/core/ops:tfq_simulate_ops_cuquantum_py",
]),
],
)
2 changes: 1 addition & 1 deletion release/build_pip_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================
set -e
set -x

Expand Down
4 changes: 2 additions & 2 deletions release/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
"""TensorFlow Quantum adds qauntum computing primitives to TensorFlow.

TensorFlow Quantum is an open source library for high performance batch
Expand Down Expand Up @@ -53,7 +53,7 @@ def finalize_options(self):
REQUIRED_PACKAGES = [
'cirq-core==0.13.1', 'cirq-google>=0.13.1', 'sympy == 1.8',
'googleapis-common-protos==1.52.0', 'google-api-core==1.21.0',
'google-auth==1.18.0', 'protobuf==3.19.5'
'google-auth==1.18.0', 'protobuf==3.19.4'
]

# placed as extra to not have required overwrite existing nightly installs if
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ google-api-core==1.21.0
google-auth==1.18.0
google-api-python-client==1.8.0
grpcio==1.34.1
protobuf==3.19.5
protobuf==3.19.4
2 changes: 1 addition & 1 deletion scripts/benchmark_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================
echo "Testing benchmarks.";
test_outputs=$(bazel test -c opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1" --cxxopt="-msse2" --cxxopt="-msse3" --cxxopt="-msse4" --test_output=errors $(bazel query //benchmarks/...))
exit_code=$?
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
"""Tool to generate external api_docs for tfq."""

from __future__ import absolute_import
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_pip_package_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================

pip install -r requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion scripts/ci_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================
wget https://github.com/bazelbuild/bazel/releases/download/5.3.0/bazel_5.3.0-linux-x86_64.deb
sudo dpkg -i bazel_5.3.0-linux-x86_64.deb
pip install --upgrade pip setuptools wheel
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci_validate_tutorials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================

# Run the tutorials using the installed pip package
pip install jupyter nbclient==0.6.5 jupyter-client==6.1.12 ipython==7.22.0
Expand Down
4 changes: 2 additions & 2 deletions scripts/format_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
# 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.
# =============================================================================
# ==============================================================================
echo "Doing python language formatting..."
python3 -m yapf --style=google --in-place --recursive ./benchmarks
python3 -m yapf --style=google --in-place --recursive ./tensorflow_quantum
echo -e "Done! \nDoing notebook formatting..."
python3 ./scripts/format_ipynb.py
echo -e "Done! \nDoing C++ formatting..."
find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format-6.0 -i -style=google
find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format -i -style=google
echo "Done!"
exit 0;
4 changes: 2 additions & 2 deletions scripts/format_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================
echo "Checking python formatting...";

################################################################################
Expand Down Expand Up @@ -92,7 +92,7 @@ else
fi

echo "Checking C++ formatting...";
formatting_outputs=$(find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format-6.0 -style=google -output-replacements-xml);
formatting_outputs=$(find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format -style=google -output-replacements-xml);
CFORMATCHECK=0
while read -r formatting_outputs; do
if [ "$formatting_outputs" != "<?xml version='1.0'?>" ] && [ "$formatting_outputs" != "<replacements xml:space='preserve' incomplete_format='false'>" ] && [ "$formatting_outputs" != "</replacements>" ] && [ "$formatting_outputs" != "<replacement offset='4290' length='9'> </replacement>" ]; then
Expand Down
2 changes: 1 addition & 1 deletion scripts/format_ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
"""Format notebook code cells using yapf google style."""
import glob
import nbformat
Expand Down
2 changes: 1 addition & 1 deletion scripts/import_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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 to check if importing `tfq` APIs is successful or not."""
import tensorflow_quantum as tfq

Expand Down
2 changes: 1 addition & 1 deletion scripts/lint_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================
echo "Checking for lint in python code...";
linting_outputs=$(pylint --rcfile .pylintrc ./tensorflow_quantum ./examples);
exit_code=$?
Expand Down
2 changes: 1 addition & 1 deletion scripts/msan_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================
echo "Testing All Bazel cc_tests with msan.";
test_outputs=$(bazel test -c opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1" \
--cxxopt="-msse2" --cxxopt="-msse3" --cxxopt="-msse4" \
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================
cd ..
cp quantum/scripts/import_test.py import_test.py
python import_test.py
2 changes: 1 addition & 1 deletion scripts/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================
echo "Testing All Bazel py_test and cc_tests.";
test_outputs=$(bazel test -c opt --experimental_repo_remote_exec --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1" --cxxopt="-std=c++17" --cxxopt="-msse2" --cxxopt="-msse3" --cxxopt="-msse4" --notest_keep_going --test_output=errors //tensorflow_quantum/...)
exit_code=$?
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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.
# =============================================================================
# ==============================================================================
echo "Testing all Benchmarks.";
bazel test -c opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1" --cxxopt="-msse2" --cxxopt="-msse3" --cxxopt="-msse4" --test_output=errors $(bazel query //benchmarks/scripts:all)
# test_outputs=$(bazel test -c opt --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1" --cxxopt="-msse2" --cxxopt="-msse3" --cxxopt="-msse4" --test_output=errors $(bazel query //benchmarks/scripts:all))
Expand Down
3 changes: 1 addition & 2 deletions scripts/test_tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# 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.
# =============================================================================
# ==============================================================================
"""Module to ensure all notebooks execute without error by pytesting them."""
import glob
import re
Expand Down Expand Up @@ -48,6 +48,5 @@ def test_notebook(self, path):

_ = nbclient.execute(nb, timeout=900, kernel_name="python3")


if __name__ == "__main__":
tf.test.main()
Loading