cirq-core 1.4.0.dev20240410004400__py3-none-any.whl → 1.4.0.dev20240411013659__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/sim/state_vector_simulator.py +5 -1
- {cirq_core-1.4.0.dev20240410004400.dist-info → cirq_core-1.4.0.dev20240411013659.dist-info}/METADATA +1 -1
- {cirq_core-1.4.0.dev20240410004400.dist-info → cirq_core-1.4.0.dev20240411013659.dist-info}/RECORD +7 -7
- {cirq_core-1.4.0.dev20240410004400.dist-info → cirq_core-1.4.0.dev20240411013659.dist-info}/LICENSE +0 -0
- {cirq_core-1.4.0.dev20240410004400.dist-info → cirq_core-1.4.0.dev20240411013659.dist-info}/WHEEL +0 -0
- {cirq_core-1.4.0.dev20240410004400.dist-info → cirq_core-1.4.0.dev20240411013659.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.4.0.
|
|
1
|
+
__version__ = "1.4.0.dev20240411013659"
|
|
@@ -134,7 +134,11 @@ class StateVectorTrialResult(
|
|
|
134
134
|
"skipping renormalization"
|
|
135
135
|
)
|
|
136
136
|
return ret
|
|
137
|
-
|
|
137
|
+
# normalize only if doing so improves the round-off on total probability
|
|
138
|
+
ret_norm = ret / norm
|
|
139
|
+
round_off_change = abs(np.vdot(ret_norm, ret_norm) - 1) - abs(np.vdot(ret, ret) - 1)
|
|
140
|
+
result = ret_norm if round_off_change < 0 else ret
|
|
141
|
+
return result
|
|
138
142
|
|
|
139
143
|
def state_vector(self, copy: bool = False) -> np.ndarray:
|
|
140
144
|
"""Return the state vector at the end of the computation.
|
{cirq_core-1.4.0.dev20240410004400.dist-info → cirq_core-1.4.0.dev20240411013659.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.dev20240411013659
|
|
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.4.0.dev20240410004400.dist-info → cirq_core-1.4.0.dev20240411013659.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=zPje22RIe8fAuWLfEZU9TZdhtqGLl60vCuzbfagNyZs,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
|
|
@@ -909,7 +909,7 @@ cirq/sim/sparse_simulator_test.py,sha256=3EAeCHUQeKllAAtdw14X592zBsGQY_vwfIYK-gE
|
|
|
909
909
|
cirq/sim/state_vector.py,sha256=N6N9EELlW66UaLTBaq62ms0XkfIK7CzN9SBM7t52dXo,13428
|
|
910
910
|
cirq/sim/state_vector_simulation_state.py,sha256=e4it_DT1J-30S3OX_gfMJiWAttFaVOMEPQ-Y1ARWnDg,17616
|
|
911
911
|
cirq/sim/state_vector_simulation_state_test.py,sha256=UtGMIurlV6N74nX7qoVnGoRhwF35-ghDEIP7Mj5AXmI,9841
|
|
912
|
-
cirq/sim/state_vector_simulator.py,sha256=
|
|
912
|
+
cirq/sim/state_vector_simulator.py,sha256=j1Dcu6k3gtX2cHedVlJiSgDQ_WQ2UUUyFnAEeHrOF88,8201
|
|
913
913
|
cirq/sim/state_vector_simulator_test.py,sha256=wJq1OZRzKokeM9cJyaJXi6wHH2qi97h0HmJlYOEBDzU,7864
|
|
914
914
|
cirq/sim/state_vector_test.py,sha256=OjhAL2tWqJWstHV8RvJYQVqg95zm0PcS9nQKrLOhMmQ,16934
|
|
915
915
|
cirq/sim/clifford/__init__.py,sha256=lD7l6JuE5n0xwvOYNYH-giCH3qAEVH1SUwDrZM1jKKY,636
|
|
@@ -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.dev20240411013659.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1173
|
+
cirq_core-1.4.0.dev20240411013659.dist-info/METADATA,sha256=_W-ashqV4sGlcGBOxmQn5YZOEarG6Sd5w9QkeymTQP4,2098
|
|
1174
|
+
cirq_core-1.4.0.dev20240411013659.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
1175
|
+
cirq_core-1.4.0.dev20240411013659.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1176
|
+
cirq_core-1.4.0.dev20240411013659.dist-info/RECORD,,
|
{cirq_core-1.4.0.dev20240410004400.dist-info → cirq_core-1.4.0.dev20240411013659.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.4.0.dev20240410004400.dist-info → cirq_core-1.4.0.dev20240411013659.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|