cirq-core 1.4.0.dev20240329203832__py3-none-any.whl → 1.4.0.dev20240330184941__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.
- cirq/_version.py +1 -1
- cirq/sim/simulation_state.py +1 -1
- cirq/sim/state_vector_simulation_state.py +4 -4
- {cirq_core-1.4.0.dev20240329203832.dist-info → cirq_core-1.4.0.dev20240330184941.dist-info}/METADATA +1 -1
- {cirq_core-1.4.0.dev20240329203832.dist-info → cirq_core-1.4.0.dev20240330184941.dist-info}/RECORD +8 -8
- {cirq_core-1.4.0.dev20240329203832.dist-info → cirq_core-1.4.0.dev20240330184941.dist-info}/LICENSE +0 -0
- {cirq_core-1.4.0.dev20240329203832.dist-info → cirq_core-1.4.0.dev20240330184941.dist-info}/WHEEL +0 -0
- {cirq_core-1.4.0.dev20240329203832.dist-info → cirq_core-1.4.0.dev20240330184941.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.4.0.
|
|
1
|
+
__version__ = "1.4.0.dev20240330184941"
|
cirq/sim/simulation_state.py
CHANGED
|
@@ -111,7 +111,7 @@ class SimulationState(SimulationStateBase, Generic[TState], metaclass=abc.ABCMet
|
|
|
111
111
|
return [self.qubit_map[q] for q in qubits]
|
|
112
112
|
|
|
113
113
|
def _perform_measurement(self, qubits: Sequence['cirq.Qid']) -> List[int]:
|
|
114
|
-
"""Delegates the call to measure the
|
|
114
|
+
"""Delegates the call to measure the `QuantumStateRepresentation`."""
|
|
115
115
|
if self._state is not None:
|
|
116
116
|
return self._state.measure(self.get_axes(qubits), self.prng)
|
|
117
117
|
raise NotImplementedError()
|
|
@@ -60,11 +60,11 @@ class _BufferedStateVector(qis.QuantumStateRepresentation):
|
|
|
60
60
|
This initializer creates the buffer if necessary.
|
|
61
61
|
|
|
62
62
|
Args:
|
|
63
|
-
initial_state: The
|
|
63
|
+
initial_state: The state vector, must be correctly formatted. The data is not
|
|
64
64
|
checked for validity here due to performance concerns.
|
|
65
|
-
qid_shape: The shape of the
|
|
66
|
-
dtype: The dtype of the
|
|
67
|
-
buffer: Optional, must be length 3 and same shape as the
|
|
65
|
+
qid_shape: The shape of the state vector, if the initial state is provided as an int.
|
|
66
|
+
dtype: The dtype of the state vector, if the initial state is provided as an int.
|
|
67
|
+
buffer: Optional, must be length 3 and same shape as the state vector. If not
|
|
68
68
|
provided, a buffer will be created automatically.
|
|
69
69
|
Raises:
|
|
70
70
|
ValueError: If initial state is provided as integer, but qid_shape is not provided.
|
{cirq_core-1.4.0.dev20240329203832.dist-info → cirq_core-1.4.0.dev20240330184941.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.dev20240330184941
|
|
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.dev20240329203832.dist-info → cirq_core-1.4.0.dev20240330184941.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=GCjKVUUctz3vHptlXjqUSzv-TRelYyZ0d4IiWqcPmzk,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
|
|
@@ -895,7 +895,7 @@ cirq/sim/mux.py,sha256=gnQGQmArs0LdLnVmxAesOTnVmaudZmgIH6JUatGUXtE,12509
|
|
|
895
895
|
cirq/sim/mux_test.py,sha256=uJUUnE9qg10rF0pGWo_bAWhp8JzsmOGW4hFRZeTKwdM,13680
|
|
896
896
|
cirq/sim/simulation_product_state.py,sha256=ehrEXLCZkcthtdYMZTZragWsPmsgzxxnmXuPQNEEg-k,7052
|
|
897
897
|
cirq/sim/simulation_product_state_test.py,sha256=ajfQcf5QpF40FndpoKetNluRfq6ds91buKFxiTafoXg,8905
|
|
898
|
-
cirq/sim/simulation_state.py,sha256=
|
|
898
|
+
cirq/sim/simulation_state.py,sha256=vmjfaG0ugHcdrzRF-xRLPDgNVwwuo1RWe3mHR2ytK1g,12640
|
|
899
899
|
cirq/sim/simulation_state_base.py,sha256=95FDt2omBxU-3KXwii6KCKMC9MtXRc1ZtnLZRE8vI0o,4196
|
|
900
900
|
cirq/sim/simulation_state_test.py,sha256=ubfkvFui9zPQwC6aJw9rmehd_4oDQCi6L3Pe1EVznAE,7410
|
|
901
901
|
cirq/sim/simulation_utils.py,sha256=74Jvi2m4HcRo0i1h7MNvul3Ho0Io8HW0KARA3Ntjh_4,2553
|
|
@@ -907,7 +907,7 @@ cirq/sim/simulator_test.py,sha256=9cHMoY7M5_82gfeBsCg6O0PnictzZu172vQAgUngJqA,18
|
|
|
907
907
|
cirq/sim/sparse_simulator.py,sha256=OvVjqNk5Kb92DM8Nrdw1BGOB7GFlT6yiXwIPpAcLV7I,12854
|
|
908
908
|
cirq/sim/sparse_simulator_test.py,sha256=3EAeCHUQeKllAAtdw14X592zBsGQY_vwfIYK-gEr_zA,53587
|
|
909
909
|
cirq/sim/state_vector.py,sha256=N6N9EELlW66UaLTBaq62ms0XkfIK7CzN9SBM7t52dXo,13428
|
|
910
|
-
cirq/sim/state_vector_simulation_state.py,sha256=
|
|
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
912
|
cirq/sim/state_vector_simulator.py,sha256=Q-wCmJdLIoJAssTvrZmGCpnooFHjZNXr_yeyy5R0NFs,7559
|
|
913
913
|
cirq/sim/state_vector_simulator_test.py,sha256=wJq1OZRzKokeM9cJyaJXi6wHH2qi97h0HmJlYOEBDzU,7864
|
|
@@ -1154,8 +1154,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
|
|
|
1154
1154
|
cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
|
|
1155
1155
|
cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
|
|
1156
1156
|
cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
|
|
1157
|
-
cirq_core-1.4.0.
|
|
1158
|
-
cirq_core-1.4.0.
|
|
1159
|
-
cirq_core-1.4.0.
|
|
1160
|
-
cirq_core-1.4.0.
|
|
1161
|
-
cirq_core-1.4.0.
|
|
1157
|
+
cirq_core-1.4.0.dev20240330184941.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1158
|
+
cirq_core-1.4.0.dev20240330184941.dist-info/METADATA,sha256=1646M24qKj6BUqytDu1Tz1ylkPrYUf1aJIaMee1KtRw,2069
|
|
1159
|
+
cirq_core-1.4.0.dev20240330184941.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
1160
|
+
cirq_core-1.4.0.dev20240330184941.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1161
|
+
cirq_core-1.4.0.dev20240330184941.dist-info/RECORD,,
|
{cirq_core-1.4.0.dev20240329203832.dist-info → cirq_core-1.4.0.dev20240330184941.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.4.0.dev20240329203832.dist-info → cirq_core-1.4.0.dev20240330184941.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|