cirq-core 1.4.0.dev20240506164407__py3-none-any.whl → 1.4.0.dev20240509162830__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/contrib/quimb/state_vector.py +9 -2
- {cirq_core-1.4.0.dev20240506164407.dist-info → cirq_core-1.4.0.dev20240509162830.dist-info}/METADATA +3 -5
- {cirq_core-1.4.0.dev20240506164407.dist-info → cirq_core-1.4.0.dev20240509162830.dist-info}/RECORD +7 -7
- {cirq_core-1.4.0.dev20240506164407.dist-info → cirq_core-1.4.0.dev20240509162830.dist-info}/LICENSE +0 -0
- {cirq_core-1.4.0.dev20240506164407.dist-info → cirq_core-1.4.0.dev20240509162830.dist-info}/WHEEL +0 -0
- {cirq_core-1.4.0.dev20240506164407.dist-info → cirq_core-1.4.0.dev20240509162830.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.4.0.
|
|
1
|
+
__version__ = "1.4.0.dev20240509162830"
|
|
@@ -170,8 +170,15 @@ def tensor_expectation_value(
|
|
|
170
170
|
)
|
|
171
171
|
else:
|
|
172
172
|
tn.rank_simplify(inplace=True)
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
# TODO(#6586): revert when our minimum quimb version has bugfix for quimb#231
|
|
174
|
+
# Skip path-info evaluation when TensorNetwork consists of scalar Tensors.
|
|
175
|
+
# Avoid bug in quimb-1.8.0.
|
|
176
|
+
# Ref: https://github.com/jcmgray/quimb/issues/231
|
|
177
|
+
if tn.ind_map:
|
|
178
|
+
path_info = tn.contract(get='path-info')
|
|
179
|
+
ram_gb = path_info.largest_intermediate * 128 / 8 / 1024 / 1024 / 1024
|
|
180
|
+
else:
|
|
181
|
+
ram_gb = 0
|
|
175
182
|
if ram_gb > max_ram_gb:
|
|
176
183
|
raise MemoryError(f"We estimate that this contraction will take too much RAM! {ram_gb} GB")
|
|
177
184
|
e_val = tn.contract(inplace=True)
|
{cirq_core-1.4.0.dev20240506164407.dist-info → cirq_core-1.4.0.dev20240509162830.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cirq-core
|
|
3
|
-
Version: 1.4.0.
|
|
3
|
+
Version: 1.4.0.dev20240509162830
|
|
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
|
|
@@ -21,11 +21,9 @@ Requires-Dist: typing-extensions >=4.2
|
|
|
21
21
|
Requires-Dist: tqdm
|
|
22
22
|
Provides-Extra: contrib
|
|
23
23
|
Requires-Dist: ply >=3.6 ; extra == 'contrib'
|
|
24
|
-
Requires-Dist: pylatex ~=1.
|
|
25
|
-
Requires-Dist: quimb ~=1.
|
|
24
|
+
Requires-Dist: pylatex ~=1.4 ; extra == 'contrib'
|
|
25
|
+
Requires-Dist: quimb ~=1.7 ; extra == 'contrib'
|
|
26
26
|
Requires-Dist: opt-einsum ; extra == 'contrib'
|
|
27
|
-
Requires-Dist: autoray ; extra == 'contrib'
|
|
28
|
-
Requires-Dist: numba ~=0.58.0 ; extra == 'contrib'
|
|
29
27
|
|
|
30
28
|
**This is a development version of Cirq-core and may be unstable.**
|
|
31
29
|
|
{cirq_core-1.4.0.dev20240506164407.dist-info → cirq_core-1.4.0.dev20240509162830.dist-info}/RECORD
RENAMED
|
@@ -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=
|
|
7
|
+
cirq/_version.py,sha256=HvH8RsJtt9j4_dutS6yEhtOpobrHfzOwzWux-vblBDw,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
|
|
@@ -127,7 +127,7 @@ cirq/contrib/quimb/grid_circuits.py,sha256=vuMiMaVXsJi-8ZwPnGcKJVVVYlXGi3O-CCwRV
|
|
|
127
127
|
cirq/contrib/quimb/grid_circuits_test.py,sha256=0Pl_wea4E_HDa9zaKkmazltFdorB4QsaL2rmMrDv8Sw,3223
|
|
128
128
|
cirq/contrib/quimb/mps_simulator.py,sha256=wz7Et54hzoShXtxrXrJ2T2Im5c_hvz7N-SCaAQ3G7qk,24705
|
|
129
129
|
cirq/contrib/quimb/mps_simulator_test.py,sha256=6sjC95Ba4WCFoI6zlJmZCYi8GFwI58wkpXQdAoF2Sms,17007
|
|
130
|
-
cirq/contrib/quimb/state_vector.py,sha256=
|
|
130
|
+
cirq/contrib/quimb/state_vector.py,sha256=kMKNYJ3LLBhQXUCp2jXxCVrp6YLi-PDbrLGoPw7FDqA,6990
|
|
131
131
|
cirq/contrib/quimb/state_vector_test.py,sha256=Jwuk_9hL00OA-WDRBafGY16ZHiBJQ18Dn8Bx2l8AAoc,5800
|
|
132
132
|
cirq/contrib/quirk/__init__.py,sha256=B8cZpO41P5mzkn-4rLJF9SRoVm-MLBmhuFMxObbICc4,704
|
|
133
133
|
cirq/contrib/quirk/export_to_quirk.py,sha256=DLZU0AcDGJhulrYlOcy2_ac9ITiqZ9bBz8a6ZZwFv8Y,3837
|
|
@@ -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.
|
|
1173
|
-
cirq_core-1.4.0.
|
|
1174
|
-
cirq_core-1.4.0.
|
|
1175
|
-
cirq_core-1.4.0.
|
|
1176
|
-
cirq_core-1.4.0.
|
|
1172
|
+
cirq_core-1.4.0.dev20240509162830.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1173
|
+
cirq_core-1.4.0.dev20240509162830.dist-info/METADATA,sha256=U2n22LwiwY8DdkbHvLf9F9IpC_6OAx-5-uV9SWHwizk,1999
|
|
1174
|
+
cirq_core-1.4.0.dev20240509162830.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
1175
|
+
cirq_core-1.4.0.dev20240509162830.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1176
|
+
cirq_core-1.4.0.dev20240509162830.dist-info/RECORD,,
|
{cirq_core-1.4.0.dev20240506164407.dist-info → cirq_core-1.4.0.dev20240509162830.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.4.0.dev20240506164407.dist-info → cirq_core-1.4.0.dev20240509162830.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|