cirq-core 1.5.0.dev20241202190033__py3-none-any.whl → 1.5.0.dev20241204013115__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
@@ -28,4 +28,4 @@ if sys.version_info < (3, 10, 0): # pragma: no cover
28
28
  'of cirq (e.g. "python -m pip install cirq==1.1.*")'
29
29
  )
30
30
 
31
- __version__ = "1.5.0.dev20241202190033"
31
+ __version__ = "1.5.0.dev20241204013115"
cirq/_version_test.py CHANGED
@@ -3,4 +3,4 @@ import cirq
3
3
 
4
4
 
5
5
  def test_version():
6
- assert cirq.__version__ == "1.5.0.dev20241202190033"
6
+ assert cirq.__version__ == "1.5.0.dev20241204013115"
cirq/work/sampler.py CHANGED
@@ -236,13 +236,13 @@ class Sampler(metaclass=value.ABCMetaImplementAnyOneOf):
236
236
  """
237
237
  raise NotImplementedError
238
238
 
239
- def run_batch(
239
+ async def run_batch_async(
240
240
  self,
241
241
  programs: Sequence['cirq.AbstractCircuit'],
242
242
  params_list: Optional[Sequence['cirq.Sweepable']] = None,
243
243
  repetitions: Union[int, Sequence[int]] = 1,
244
244
  ) -> Sequence[Sequence['cirq.Result']]:
245
- """Runs the supplied circuits.
245
+ """Runs the supplied circuits asynchronously.
246
246
 
247
247
  Each circuit provided in `programs` will pair with the optional
248
248
  associated parameter sweep provided in the `params_list`, and be run
@@ -281,26 +281,12 @@ class Sampler(metaclass=value.ABCMetaImplementAnyOneOf):
281
281
  of `params_list` or the length of `repetitions`.
282
282
  """
283
283
  params_list, repetitions = self._normalize_batch_args(programs, params_list, repetitions)
284
- return [
285
- self.run_sweep(circuit, params=params, repetitions=repetitions)
286
- for circuit, params, repetitions in zip(programs, params_list, repetitions)
287
- ]
288
-
289
- async def run_batch_async(
290
- self,
291
- programs: Sequence['cirq.AbstractCircuit'],
292
- params_list: Optional[Sequence['cirq.Sweepable']] = None,
293
- repetitions: Union[int, Sequence[int]] = 1,
294
- ) -> Sequence[Sequence['cirq.Result']]:
295
- """Runs the supplied circuits asynchronously.
296
-
297
- See docs for `cirq.Sampler.run_batch`.
298
- """
299
- params_list, repetitions = self._normalize_batch_args(programs, params_list, repetitions)
300
284
  return await duet.pstarmap_async(
301
285
  self.run_sweep_async, zip(programs, params_list, repetitions)
302
286
  )
303
287
 
288
+ run_batch = duet.sync(run_batch_async)
289
+
304
290
  def _normalize_batch_args(
305
291
  self,
306
292
  programs: Sequence['cirq.AbstractCircuit'],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.5.0.dev20241202190033
3
+ Version: 1.5.0.dev20241204013115
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,8 +4,8 @@ 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=v0e_6TCcugpK-r2nscoBL-iteaqlJZt1goTisE6ShaU,1206
8
- cirq/_version_test.py,sha256=2cwhv7SmKdX3SE5QdUGho3LEhv43iYvSao5mZXB-Ddc,147
7
+ cirq/_version.py,sha256=-n5WLfRCHg2T21eGpM5GTzoVSC16K5u2Fiy0al0v_oU,1206
8
+ cirq/_version_test.py,sha256=ZTvXGnX6_oHt5UPdSRHeiIc9-UaZYYaCjkFIuWrd3eA,147
9
9
  cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
10
10
  cirq/json_resolver_cache.py,sha256=ytePZtNZgKjOF2NiVpUTuotB-JKZmQNOFIFdvXqsxHw,13271
11
11
  cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
@@ -1183,12 +1183,12 @@ cirq/work/observable_settings.py,sha256=OsZS8XvHT2LCFGkzu-wh1WShOx93I1nZ2K7uce-i
1183
1183
  cirq/work/observable_settings_test.py,sha256=hV3g5ld5OZchTjVMVL_8cLXsbSBMz5DAsE4Vui2xTuk,4233
1184
1184
  cirq/work/pauli_sum_collector.py,sha256=N1IsIwudBi84XWP1x7LNE2uQ6DGR2LFIWPhGbdHxaA4,4230
1185
1185
  cirq/work/pauli_sum_collector_test.py,sha256=aeo06iLIYZjWjN3C4loVHRYWpV35lSSlcX2cOVdt2Ss,2437
1186
- cirq/work/sampler.py,sha256=y6qtCpAwO8SqZ_JKU8PwlbMLHpJskNPqGWD_pNbyZew,19779
1186
+ cirq/work/sampler.py,sha256=bE5tmVkcR6cZZMLETxDfHehdsYUMbx2RvBeIBetehI4,19187
1187
1187
  cirq/work/sampler_test.py,sha256=hL2UWx3dz2ukZVNxWftiKVvJcQoLplLZdQm-k1QcA40,13282
1188
1188
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1189
1189
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1190
- cirq_core-1.5.0.dev20241202190033.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1191
- cirq_core-1.5.0.dev20241202190033.dist-info/METADATA,sha256=arpql58a9I3zdvyBWRoSj707zgIr2yg8mJ-McHybwik,1992
1192
- cirq_core-1.5.0.dev20241202190033.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1193
- cirq_core-1.5.0.dev20241202190033.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1194
- cirq_core-1.5.0.dev20241202190033.dist-info/RECORD,,
1190
+ cirq_core-1.5.0.dev20241204013115.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1191
+ cirq_core-1.5.0.dev20241204013115.dist-info/METADATA,sha256=ZX8FK2cnuSyMwbVnY4bwx8LBba2C41zHFXzCgEkDf0c,1992
1192
+ cirq_core-1.5.0.dev20241204013115.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
1193
+ cirq_core-1.5.0.dev20241204013115.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1194
+ cirq_core-1.5.0.dev20241204013115.dist-info/RECORD,,