cirq-core 1.7.0.dev20250814214609__py3-none-any.whl → 1.7.0.dev20250816004233__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/fidelity_estimation.py +6 -5
- {cirq_core-1.7.0.dev20250814214609.dist-info → cirq_core-1.7.0.dev20250816004233.dist-info}/METADATA +1 -1
- {cirq_core-1.7.0.dev20250814214609.dist-info → cirq_core-1.7.0.dev20250816004233.dist-info}/RECORD +8 -8
- {cirq_core-1.7.0.dev20250814214609.dist-info → cirq_core-1.7.0.dev20250816004233.dist-info}/WHEEL +0 -0
- {cirq_core-1.7.0.dev20250814214609.dist-info → cirq_core-1.7.0.dev20250816004233.dist-info}/licenses/LICENSE +0 -0
- {cirq_core-1.7.0.dev20250814214609.dist-info → cirq_core-1.7.0.dev20250816004233.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
from __future__ import annotations
|
|
18
18
|
|
|
19
|
-
from typing import Callable, Sequence, TYPE_CHECKING
|
|
19
|
+
from typing import Callable, Mapping, Sequence, TYPE_CHECKING
|
|
20
20
|
|
|
21
21
|
import numpy as np
|
|
22
22
|
|
|
@@ -141,7 +141,7 @@ def xeb_fidelity(
|
|
|
141
141
|
circuit: cirq.Circuit,
|
|
142
142
|
bitstrings: Sequence[int],
|
|
143
143
|
qubit_order: QubitOrderOrList = QubitOrder.DEFAULT,
|
|
144
|
-
amplitudes: np.ndarray | None = None,
|
|
144
|
+
amplitudes: Mapping[int, complex] | np.ndarray | None = None,
|
|
145
145
|
estimator: Callable[[int, Sequence[float]], float] = linear_xeb_fidelity_from_probabilities,
|
|
146
146
|
) -> float:
|
|
147
147
|
"""Estimates XEB fidelity from one circuit using user-supplied estimator.
|
|
@@ -169,7 +169,8 @@ def xeb_fidelity(
|
|
|
169
169
|
`cirq.final_state_vector`.
|
|
170
170
|
qubit_order: Qubit order used to construct bitstrings enumerating
|
|
171
171
|
qubits starting with the most significant qubit.
|
|
172
|
-
amplitudes: Optional
|
|
172
|
+
amplitudes: Optional mapping from bitstring to output amplitude or
|
|
173
|
+
an array of amplitudes at bitstring indices.
|
|
173
174
|
If provided, simulation is skipped. Useful for large circuits
|
|
174
175
|
when an offline simulation had already been performed.
|
|
175
176
|
estimator: Fidelity estimator to use, see above. Defaults to the
|
|
@@ -206,7 +207,7 @@ def linear_xeb_fidelity(
|
|
|
206
207
|
circuit: cirq.Circuit,
|
|
207
208
|
bitstrings: Sequence[int],
|
|
208
209
|
qubit_order: QubitOrderOrList = QubitOrder.DEFAULT,
|
|
209
|
-
amplitudes: np.ndarray | None = None,
|
|
210
|
+
amplitudes: Mapping[int, complex] | np.ndarray | None = None,
|
|
210
211
|
) -> float:
|
|
211
212
|
"""Estimates XEB fidelity from one circuit using linear estimator."""
|
|
212
213
|
return xeb_fidelity(
|
|
@@ -222,7 +223,7 @@ def log_xeb_fidelity(
|
|
|
222
223
|
circuit: cirq.Circuit,
|
|
223
224
|
bitstrings: Sequence[int],
|
|
224
225
|
qubit_order: QubitOrderOrList = QubitOrder.DEFAULT,
|
|
225
|
-
amplitudes: np.ndarray | None = None,
|
|
226
|
+
amplitudes: Mapping[int, complex] | np.ndarray | None = None,
|
|
226
227
|
) -> float:
|
|
227
228
|
"""Estimates XEB fidelity from one circuit using logarithmic estimator."""
|
|
228
229
|
return xeb_fidelity(
|
{cirq_core-1.7.0.dev20250814214609.dist-info → cirq_core-1.7.0.dev20250816004233.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cirq-core
|
|
3
|
-
Version: 1.7.0.
|
|
3
|
+
Version: 1.7.0.dev20250816004233
|
|
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.7.0.dev20250814214609.dist-info → cirq_core-1.7.0.dev20250816004233.dist-info}/RECORD
RENAMED
|
@@ -4,8 +4,8 @@ cirq/_compat_test.py,sha256=emXpdD5ZvwLRlFAoQB8YatmZyU3b4e9jg6FppMTUhkU,33900
|
|
|
4
4
|
cirq/_doc.py,sha256=BrnoABo1hk5RgB3Cgww4zLHUfiyFny0F1V-tOMCbdaU,2909
|
|
5
5
|
cirq/_import.py,sha256=ixBu4EyGl46Ram2cP3p5eZVEFDW5L2DS-VyTjz4N9iw,8429
|
|
6
6
|
cirq/_import_test.py,sha256=oF4izzOVZLc7NZ0aZHFcGv-r01eiFFt_JORx_x7_D4s,1089
|
|
7
|
-
cirq/_version.py,sha256=
|
|
8
|
-
cirq/_version_test.py,sha256=
|
|
7
|
+
cirq/_version.py,sha256=1Y26ORK1I3DDzyCanrqbfgB5finEmq-4xS0ckW4_GGM,1206
|
|
8
|
+
cirq/_version_test.py,sha256=06NWWHUGapHMtNxfJkBZcdEovNkrq-9E1Q2gQFVos6A,155
|
|
9
9
|
cirq/conftest.py,sha256=wSDKNdIQRDfLnXvOCWD3erheOw8JHRhdfQ53EyTUIXg,1239
|
|
10
10
|
cirq/json_resolver_cache.py,sha256=A5DIgFAY1hUNt9vai_C3-gGBv24116CJMzQxMcXOax4,13726
|
|
11
11
|
cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
|
|
@@ -193,7 +193,7 @@ cirq/devices/thermal_noise_model_test.py,sha256=2IKRk30OXQ6wVuOGM28dYdXOaP578nTG
|
|
|
193
193
|
cirq/devices/unconstrained_device.py,sha256=gC3NB4P8UUsVyz3o7CcVV_L6xIeY-ewgaUoXy3UCfDE,1536
|
|
194
194
|
cirq/devices/unconstrained_device_test.py,sha256=R3JSwkjSIMYd9jtNGsYmEAw4yzESPhh88MZfd86Cekg,1107
|
|
195
195
|
cirq/experiments/__init__.py,sha256=3y8FX6Edh_mEFJ7AWjhDurnSLxuEt0_edqL7CitCrTQ,3777
|
|
196
|
-
cirq/experiments/fidelity_estimation.py,sha256=
|
|
196
|
+
cirq/experiments/fidelity_estimation.py,sha256=Wd2OiWzrlLwIbRbykV2axEbFdFKoJBc6sdIbAWTm1Q4,9362
|
|
197
197
|
cirq/experiments/fidelity_estimation_test.py,sha256=ivUgYobEuN2eIzUveXy1Asabure2fRaopL8QfdFtvFQ,5007
|
|
198
198
|
cirq/experiments/n_qubit_tomography.py,sha256=16u0Tv14SyUM9WCk-ZxbBit9cl93MbZodGrj16XiBuo,8436
|
|
199
199
|
cirq/experiments/n_qubit_tomography_test.py,sha256=8wIgs0O8DtlCGOyC0MZA_d3tLNoURX1ARcqnnp1360g,4439
|
|
@@ -1234,8 +1234,8 @@ cirq/work/sampler.py,sha256=rxbMWvrhu3gfNSBjZKozw28lLKVvBAS_1EGyPdYe8Xg,19041
|
|
|
1234
1234
|
cirq/work/sampler_test.py,sha256=SsMrRvLDYELyOAWLKISjkdEfrBwLYWRsT6D8WrsLM3Q,13533
|
|
1235
1235
|
cirq/work/zeros_sampler.py,sha256=Fs2JWwq0n9zv7_G5Rm-9vPeHUag7uctcMOHg0JTkZpc,2371
|
|
1236
1236
|
cirq/work/zeros_sampler_test.py,sha256=lQLgQDGBLtfImryys2HzQ2jOSGxHgc7-koVBUhv8qYk,3345
|
|
1237
|
-
cirq_core-1.7.0.
|
|
1238
|
-
cirq_core-1.7.0.
|
|
1239
|
-
cirq_core-1.7.0.
|
|
1240
|
-
cirq_core-1.7.0.
|
|
1241
|
-
cirq_core-1.7.0.
|
|
1237
|
+
cirq_core-1.7.0.dev20250816004233.dist-info/licenses/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1238
|
+
cirq_core-1.7.0.dev20250816004233.dist-info/METADATA,sha256=dlMyzj3rXekWnFzJKkKJZbQ3pvLCoSkA-UrFNZP6R_Y,4857
|
|
1239
|
+
cirq_core-1.7.0.dev20250816004233.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
1240
|
+
cirq_core-1.7.0.dev20250816004233.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1241
|
+
cirq_core-1.7.0.dev20250816004233.dist-info/RECORD,,
|
{cirq_core-1.7.0.dev20250814214609.dist-info → cirq_core-1.7.0.dev20250816004233.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|