cirq-core 1.4.0.dev20240419073809__py3-none-any.whl → 1.4.0.dev20240425185523__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cirq-core might be problematic. Click here for more details.

cirq/_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.4.0.dev20240419073809"
1
+ __version__ = "1.4.0.dev20240425185523"
cirq/study/sweeps.py CHANGED
@@ -236,8 +236,6 @@ class Product(Sweep):
236
236
  return sum((factor.keys for factor in self.factors), [])
237
237
 
238
238
  def __len__(self) -> int:
239
- if not self.factors:
240
- return 0
241
239
  length = 1
242
240
  for factor in self.factors:
243
241
  length *= len(factor)
cirq/study/sweeps_test.py CHANGED
@@ -142,6 +142,11 @@ def test_product():
142
142
  assert _values(sweep, 'b') == [4, 5, 6, 7, 4, 5, 6, 7, 4, 5, 6, 7]
143
143
 
144
144
 
145
+ def test_empty_product():
146
+ sweep = cirq.Product()
147
+ assert len(sweep) == len(list(sweep)) == 1
148
+
149
+
145
150
  def test_slice_access_error():
146
151
  sweep = cirq.Points('a', [1, 2, 3])
147
152
  with pytest.raises(TypeError, match='<class \'str\'>'):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.4.0.dev20240419073809
3
+ Version: 1.4.0.dev20240425185523
4
4
  Summary: A framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
5
5
  Home-page: http://github.com/quantumlib/cirq
6
6
  Author: The Cirq Developers
@@ -4,7 +4,7 @@ cirq/_compat_test.py,sha256=Qq3ZcfgD-Nb81cEppQdJqhAyrVqXKtfXZYGXT0p-Wh0,34718
4
4
  cirq/_doc.py,sha256=yDyWUD_2JDS0gShfGRb-rdqRt9-WeL7DhkqX7np0Nko,2879
5
5
  cirq/_import.py,sha256=p9gMHJscbtDDkfHOaulvd3Aer0pwUF5AXpL89XR8dNw,8402
6
6
  cirq/_import_test.py,sha256=6K_v0riZJXOXUphHNkGA8MY-JcmGlezFaGmvrNhm3OQ,1015
7
- cirq/_version.py,sha256=VLMyoKgtktjsOU359gwigM2OxEruVVvbeMGm1irygRs,40
7
+ cirq/_version.py,sha256=sJHbWZQlWIWOx_apDjae6b-gvxpvhdJSaOBm9K93WbE,40
8
8
  cirq/_version_test.py,sha256=yYS6xm5-nuBRQJa9R3n41WdvFtVyY7Lb5Q8bea3VgBI,133
9
9
  cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
10
10
  cirq/json_resolver_cache.py,sha256=9g_JQMmfBzTuV-3s2flUbXIgcLjs4K7LjAFFgngdG1U,13204
@@ -934,8 +934,8 @@ cirq/study/result.py,sha256=KzjpjvDVCTFjMyq9r91pZSYdtcD1x3yj8jP_StlOSMg,19285
934
934
  cirq/study/result_test.py,sha256=fq5BH78RswfTiYjMchJ4wEDDyaJu0QdJoGobMjKDeSI,15591
935
935
  cirq/study/sweepable.py,sha256=BMgq8lxVnyJGBeu4gFUt_0P_v4gFwKgazZFftRUEwnA,4185
936
936
  cirq/study/sweepable_test.py,sha256=xjUksIurfbh240fEC7Al_TuiHGz7xZGktQUh86XBG9U,4772
937
- cirq/study/sweeps.py,sha256=t_FNvvkHYR6kyVvxeSa5WL-laUT77Bhzrx1vQ0qW6hI,19950
938
- cirq/study/sweeps_test.py,sha256=maE7UgJ2s2mlE96YkIYW3pyvYQCPat-bZfnbIQ1TSrA,12033
937
+ cirq/study/sweeps.py,sha256=8mUc5dnOJxZH8m_6ncgkZRY7a2TBe7_9d3WcvJAyZlA,19900
938
+ cirq/study/sweeps_test.py,sha256=YdXHzZO10OHoPTU2ifmsfH7KByIJeeANy91AHqX8nwg,12135
939
939
  cirq/testing/__init__.py,sha256=cACho8s-V5tNOjBcDUtr2DipQxQcbUgbr4MESJb4l1I,3870
940
940
  cirq/testing/circuit_compare.py,sha256=nBQES45wLVThOqC3WrPrYKLQP7HQ2pH5DjlJ5bHkrtU,19176
941
941
  cirq/testing/circuit_compare_test.py,sha256=AduZCzwBNFCYrjEpyS1DvIR6jU8GaFqQBBgPXyIALoU,19743
@@ -1169,8 +1169,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
1169
1169
  cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
1170
1170
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1171
1171
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1172
- cirq_core-1.4.0.dev20240419073809.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1173
- cirq_core-1.4.0.dev20240419073809.dist-info/METADATA,sha256=qZ-LqlWAa4x0ntSaYolVG7Puw5-3T9IBwYAuwkGur2M,2098
1174
- cirq_core-1.4.0.dev20240419073809.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1175
- cirq_core-1.4.0.dev20240419073809.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1176
- cirq_core-1.4.0.dev20240419073809.dist-info/RECORD,,
1172
+ cirq_core-1.4.0.dev20240425185523.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1173
+ cirq_core-1.4.0.dev20240425185523.dist-info/METADATA,sha256=ZF0JYJg5pfNQM5zkQ0yCLrOh3ckRGRvy8S6OvZBELvE,2098
1174
+ cirq_core-1.4.0.dev20240425185523.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1175
+ cirq_core-1.4.0.dev20240425185523.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1176
+ cirq_core-1.4.0.dev20240425185523.dist-info/RECORD,,