cirq-core 1.5.0.dev20240607182648__py3-none-any.whl → 1.5.0.dev20240610203324__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 +1 -1
- cirq/_version_test.py +1 -1
- cirq/experiments/xeb_sampling.py +9 -13
- {cirq_core-1.5.0.dev20240607182648.dist-info → cirq_core-1.5.0.dev20240610203324.dist-info}/METADATA +1 -1
- {cirq_core-1.5.0.dev20240607182648.dist-info → cirq_core-1.5.0.dev20240610203324.dist-info}/RECORD +8 -8
- {cirq_core-1.5.0.dev20240607182648.dist-info → cirq_core-1.5.0.dev20240610203324.dist-info}/LICENSE +0 -0
- {cirq_core-1.5.0.dev20240607182648.dist-info → cirq_core-1.5.0.dev20240610203324.dist-info}/WHEEL +0 -0
- {cirq_core-1.5.0.dev20240607182648.dist-info → cirq_core-1.5.0.dev20240610203324.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
cirq/experiments/xeb_sampling.py
CHANGED
|
@@ -12,11 +12,9 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
"""Estimation of fidelity associated with experimental circuit executions."""
|
|
15
|
-
import concurrent
|
|
16
15
|
import os
|
|
17
16
|
import time
|
|
18
17
|
import uuid
|
|
19
|
-
from concurrent.futures.thread import ThreadPoolExecutor
|
|
20
18
|
from dataclasses import dataclass
|
|
21
19
|
from typing import (
|
|
22
20
|
Callable,
|
|
@@ -276,18 +274,16 @@ def _execute_sample_2q_xeb_tasks_in_batches(
|
|
|
276
274
|
run_batch = _SampleInBatches(
|
|
277
275
|
sampler=sampler, repetitions=repetitions, combinations_by_layer=combinations_by_layer
|
|
278
276
|
)
|
|
279
|
-
with ThreadPoolExecutor(max_workers=2) as pool:
|
|
280
|
-
futures = [pool.submit(run_batch, task_batch) for task_batch in batched_tasks]
|
|
281
277
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
278
|
+
records = []
|
|
279
|
+
with progress_bar(total=len(batched_tasks) * batch_size) as progress:
|
|
280
|
+
for task in batched_tasks:
|
|
281
|
+
new_records = run_batch(task)
|
|
282
|
+
if dataset_directory is not None:
|
|
283
|
+
os.makedirs(f'{dataset_directory}', exist_ok=True)
|
|
284
|
+
protocols.to_json(new_records, f'{dataset_directory}/xeb.{uuid.uuid4()}.json')
|
|
285
|
+
records.extend(new_records)
|
|
286
|
+
progress.update(batch_size)
|
|
291
287
|
return records
|
|
292
288
|
|
|
293
289
|
|
{cirq_core-1.5.0.dev20240607182648.dist-info → cirq_core-1.5.0.dev20240610203324.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cirq-core
|
|
3
|
-
Version: 1.5.0.
|
|
3
|
+
Version: 1.5.0.dev20240610203324
|
|
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
|
{cirq_core-1.5.0.dev20240607182648.dist-info → cirq_core-1.5.0.dev20240610203324.dist-info}/RECORD
RENAMED
|
@@ -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=
|
|
8
|
-
cirq/_version_test.py,sha256=
|
|
7
|
+
cirq/_version.py,sha256=X6TQ2nt8-RjX2OqWZ4LM2bgjBhLgQB__Gc7sMjMG2S4,1206
|
|
8
|
+
cirq/_version_test.py,sha256=uj9Hg6-l3bVWFvda0wTEAtaQ2lNEp9rgHP0tb0m_Vhg,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
|
|
@@ -200,7 +200,7 @@ cirq/experiments/two_qubit_xeb.py,sha256=wdLxBi3LrAlPF-SQV9Tf66k31XC2cVHNPhpR-VL
|
|
|
200
200
|
cirq/experiments/two_qubit_xeb_test.py,sha256=Tlr32vuJpyepkMBVVkN6ipjRyDr8DIixfBumEeGXzDM,10073
|
|
201
201
|
cirq/experiments/xeb_fitting.py,sha256=54FKzGqhZgyvAkP_AR2-7peDnL-PJxOp-MkQdfp8bfU,27178
|
|
202
202
|
cirq/experiments/xeb_fitting_test.py,sha256=nfFhKPr_Nx5rbfCcvrcUFQxphCZuTnJVnpT-xBjxRFI,14349
|
|
203
|
-
cirq/experiments/xeb_sampling.py,sha256=
|
|
203
|
+
cirq/experiments/xeb_sampling.py,sha256=6ZOidGi7Kt6p4cMQCjK7qQuIUXVHCYl47B2GnL8M-Bw,14987
|
|
204
204
|
cirq/experiments/xeb_sampling_test.py,sha256=0XkQGvcURsug3IblE_wZrHVDoOQV3WuQilrqCJbDHjI,6784
|
|
205
205
|
cirq/experiments/xeb_simulation.py,sha256=DpCWVxzWnZvjrdfgIbwR9rWenehqz7Su3LPIVHoK7gI,5055
|
|
206
206
|
cirq/experiments/xeb_simulation_test.py,sha256=gx0GqGZ4TDwrNW5ULK5JEWfzL-Dvb8TpAxIgdpiB8Tg,5430
|
|
@@ -1175,8 +1175,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
|
|
|
1175
1175
|
cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
|
|
1176
1176
|
cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
|
|
1177
1177
|
cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
|
|
1178
|
-
cirq_core-1.5.0.
|
|
1179
|
-
cirq_core-1.5.0.
|
|
1180
|
-
cirq_core-1.5.0.
|
|
1181
|
-
cirq_core-1.5.0.
|
|
1182
|
-
cirq_core-1.5.0.
|
|
1178
|
+
cirq_core-1.5.0.dev20240610203324.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1179
|
+
cirq_core-1.5.0.dev20240610203324.dist-info/METADATA,sha256=T_KZxLr9s0X7baudscpUcLSH_DKi_sHnXRObFG9lMnE,1998
|
|
1180
|
+
cirq_core-1.5.0.dev20240610203324.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
1181
|
+
cirq_core-1.5.0.dev20240610203324.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1182
|
+
cirq_core-1.5.0.dev20240610203324.dist-info/RECORD,,
|
{cirq_core-1.5.0.dev20240607182648.dist-info → cirq_core-1.5.0.dev20240610203324.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.5.0.dev20240607182648.dist-info → cirq_core-1.5.0.dev20240610203324.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|