Skip to content

Commit f56257b

Browse files
Roll back to working state. (#780)
* Revert "Merge pull request #776 from Sinestro38/master" This reverts commit b4c7ea1, reversing changes made to 140277d. * Revert "remove release notes md" This reverts commit 25313f4. * Revert "Merge remote-tracking branch 'forkB/fix_warnings'" This reverts commit d789314, reversing changes made to fe3a96e. * Revert "Merge pull request #772 from Sinestro38/fix_license" This reverts commit 140277d, reversing changes made to 7131f9e. * Revert "fix ubuntu version to 20.04" This reverts commit 803622a. * Revert "[debug] get ubuntu version of runner" This reverts commit 8002690. * Revert "update ubuntu github runner from 18.04 to latest" This reverts commit 471573a. * Revert "update > to ~" This reverts commit fe3a96e. * Revert "update cirq dependency news" This reverts commit a44ab26. * Revert "Update release.md" This reverts commit a7a67c8. * Revert "add notes" This reverts commit c7f729a. * Revert "update version num" This reverts commit f933b69. * Revert "Update release.md" This reverts commit c2ab0d5. * Revert "Create release.md" This reverts commit ac7722a. * Revert "Merge branch 'master' into master" This reverts commit 7131f9e, reversing changes made to 2c1e7fa. * Revert "Upgrade bazel version 5.3.0 and fix some typo in tf version (#755)" This reverts commit 2c1e7fa. * Revert "Merge pull request #3 from jaeyoo/pavan/remove_compute_small" This reverts commit 79aae25, reversing changes made to 46aa1f0. * Revert "Fix lint" This reverts commit 20815bc. * Revert "Fix lint" This reverts commit 47e6aae. * Revert "Update release/BUILD with `if_cuda_is_configured`" This reverts commit f2cd255. * Revert "add :tfq_simulate_ops_cuquantum_py target to release BUILD" This reverts commit 3e8a9a4. * Revert "remove computeSmall from cuda and cuquantum kernels" This reverts commit 5cb7fa1. * Revert "Merge pull request #2 from jaeyoo/cuquantum_support" This reverts commit 46aa1f0, reversing changes made to 2a5fd07. * Revert "Merge pull request #1 from jaeyoo/cuda_support" This reverts commit 2a5fd07, reversing changes made to b0dd745. * Revert "Merge branch 'master' into cuda_support" This reverts commit f19298c, reversing changes made to 4f6290a. * Revert "Add cuQuantum test (but failed at numeric diff test)" This reverts commit f97c496. * Revert "Fix ComputeSmall and enable it." This reverts commit 4f6290a. * Revert "Fix tfq_simulate_ops_cuda op test." This reverts commit 6644248. * Revert "Temporarily turn on ComputeLarge always" This reverts commit 23dd880. * Revert "Upgrade TF version from 2.7 to 2.11 (#749)" This reverts commit 20cfde5. * Revert "TFQ simulate expectation CUDA op" This reverts commit f063417. * Revert "Update ci_install bazel version, removed duplicated code lines." This reverts commit 1317edf. * Revert "Fix typo" This reverts commit a765f7f. * Revert "Upgrade seaborn version to 0.12.0" This reverts commit 4e7c22d. * Revert "Fix tutorial errors" This reverts commit c185891. * Revert "Fix tutorial error" This reverts commit c5df061. * Revert "Upgrade the latest gym for notebook tutorial." This reverts commit 9b94ebf. * Revert "Format optimizers" This reverts commit 39a811d. * Revert "Format" This reverts commit a22b98f. * Revert "Upgrade to TF v2.11" This reverts commit 26fa2df. * Upgrade TF version from 2.7 to 2.11 (#749) * Upgrade bazel version to 5.1.0 for building with TFv2.11.0 * Upgrade to TF v2.11 * Bump up the version of numpy to v1.24.2 * Format * Fix tf.Variable inside tf.while_loop issues inside optimizers * Format optimizers * Upgrade the latest gym for notebook tutorial. * Fix tutorial error * Fix tutorial errors * Upgrade seaborn version to 0.12.0 * Fix typo * Remove debug print * Update ci_install bazel version, removed duplicated code lines. * Upgrade bazel version 5.3.0 and fix some typo in tf version (#755) * fix compatability issues. * re-trigger kokoro * re-trigger kokoro * re-trigger kokoro * re-trigger kokoro * re-trigger kokoro * Lower tolerances. * Bump CI python version. --------- Co-authored-by: Jae H. Yoo <[email protected]>
1 parent b4c7ea1 commit f56257b

File tree

156 files changed

+310
-1291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+310
-1291
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Continuous Integration
22

33
on: [pull_request]
44

5+
56
jobs:
67
lint:
78
name: Lint check
@@ -10,7 +11,7 @@ jobs:
1011
- uses: actions/checkout@v1
1112
- uses: actions/setup-python@v1
1213
with:
13-
python-version: '3.8'
14+
python-version: '3.9'
1415
architecture: 'x64'
1516
- name: Install Lint tools
1617
run: pip install --upgrade pip setuptools; pip install -r requirements.txt;
@@ -25,7 +26,7 @@ jobs:
2526
- uses: actions/checkout@v1
2627
- uses: actions/setup-python@v1
2728
with:
28-
python-version: '3.8'
29+
python-version: '3.9'
2930
architecture: 'x64'
3031
- name: Install Format tools
3132
run: pip install --upgrade pip setuptools; pip install -r requirements.txt; sudo apt-get install -y clang-format-6.0
@@ -40,7 +41,7 @@ jobs:
4041
- uses: actions/checkout@v1
4142
- uses: actions/setup-python@v1
4243
with:
43-
python-version: '3.8'
44+
python-version: '3.9'
4445
architecture: 'x64'
4546
- name: Install Bazel on CI
4647
run: ./scripts/ci_install.sh
@@ -60,7 +61,7 @@ jobs:
6061
- uses: actions/checkout@v1
6162
- uses: actions/setup-python@v1
6263
with:
63-
python-version: '3.8'
64+
python-version: '3.9'
6465
architecture: 'x64'
6566
- name: Install Bazel on CI
6667
run: ./scripts/ci_install.sh
@@ -78,7 +79,7 @@ jobs:
7879
- uses: actions/checkout@v1
7980
- uses: actions/setup-python@v1
8081
with:
81-
python-version: '3.8'
82+
python-version: '3.9'
8283
architecture: 'x64'
8384
- name: Install Bazel on CI
8485
run: ./scripts/ci_install.sh
@@ -96,7 +97,7 @@ jobs:
9697
- uses: actions/checkout@v1
9798
- uses: actions/setup-python@v1
9899
with:
99-
python-version: '3.8'
100+
python-version: '3.9'
100101
architecture: 'x64'
101102
- name: Install notebook dependencies
102103
run: pip install --upgrade pip seaborn==0.10.0

.github/workflows/cirq_compatibility.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Cirq Compatibility
32

43
on:
@@ -8,7 +7,7 @@ on:
87
jobs:
98
consistency:
109
name: Nightly Compatibility
11-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-16.04
1211
steps:
1312
- uses: actions/checkout@v1
1413
- uses: actions/setup-python@v1

WORKSPACE

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,11 @@ cc_library(
2424
],
2525
)
2626

27-
# http_archive(
28-
# name = "qsim",
29-
# sha256 = "b9c1eba09a885a938b5e73dfc2e02f5231cf3b01d899415caa24769346a731d5",
30-
# strip_prefix = "qsim-0.13.3",
31-
# urls = ["https://github.com/quantumlib/qsim/archive/refs/tags/v0.13.3.zip"],
32-
# )
33-
34-
# TODO: After merging this patch later into qsim mainstream, remove this and uncomment the above.
3527
http_archive(
3628
name = "qsim",
37-
sha256 = "",
38-
strip_prefix = "qsim-0.15.0-dev20230327_v3",
39-
urls = ["https://github.com/jaeyoo/qsim/archive/refs/tags/v0.15.0+dev20230327_v3.tar.gz"],
29+
sha256 = "b9c1eba09a885a938b5e73dfc2e02f5231cf3b01d899415caa24769346a731d5",
30+
strip_prefix = "qsim-0.13.3",
31+
urls = ["https://github.com/quantumlib/qsim/archive/refs/tags/v0.13.3.zip"],
4032
)
4133

4234
http_archive(
@@ -81,21 +73,3 @@ bind(
8173
actual = "@six_archive//:six",
8274
)
8375

84-
new_local_repository(
85-
name = "cuquantum_libs",
86-
path = "/usr/local/google/home/jaeyoo/workspace/cuquantum-linux-x86_64-22.11.0.13-archive",
87-
build_file_content = """
88-
cc_library(
89-
name = "custatevec_headers",
90-
srcs = ["include/custatevec.h"],
91-
visibility = ["//visibility:public"],
92-
)
93-
94-
cc_library(
95-
name = "custatevec",
96-
srcs = ["lib/libcustatevec.so"],
97-
visibility = ["//visibility:public"],
98-
)
99-
""",
100-
)
101-

benchmarks/scripts/benchmark_clifford_circuit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# =============================================================================
14+
# ==============================================================================
1515
"""Benchmark simulators against classically simulatable circuits."""
1616
import os
1717
import time

benchmarks/scripts/benchmark_op_gradients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# =============================================================================
14+
# ==============================================================================
1515
"""Benchmark differentiator methods."""
1616
import os
1717
import time

benchmarks/scripts/benchmark_random_circuit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# =============================================================================
14+
# ==============================================================================
1515
"""Benchmark simulators against classically intractable 'supremacy' circuits."""
1616
import os
1717
import time

benchmarks/scripts/benchmark_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# =============================================================================
14+
# ==============================================================================
1515
"""Utility functions for benchmark tools."""
1616
import tensorflow as tf
1717
import test_log_pb2

benchmarks/scripts/benchmark_util_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# =============================================================================
14+
# ==============================================================================
1515
"""Tests for utilities related to reading/running benchmarks."""
1616
import os
1717
import tempfile

benchmarks/scripts/flags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# =============================================================================
14+
# ==============================================================================
1515
"""Command line flags shared between benchmarks."""
1616
from collections import namedtuple
1717
from absl import flags as absl_flags

benchmarks/scripts/flags_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
# =============================================================================
14+
# ==============================================================================
1515
"""Tests for benchmark command line flags."""
1616

1717
import tensorflow as tf

0 commit comments

Comments
 (0)