cirq-core 1.3.0.dev20230720000937__py3-none-any.whl → 1.3.0.dev20230725010808__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/_compat_test.py CHANGED
@@ -781,8 +781,7 @@ def test_deprecated_module_deadline_validation():
781
781
 
782
782
  def _test_broken_module_1_inner():
783
783
  with pytest.raises(
784
- DeprecatedModuleImportError,
785
- match="missing_module cannot be imported. " "The typical reasons",
784
+ DeprecatedModuleImportError, match="missing_module cannot be imported. The typical reasons"
786
785
  ):
787
786
  # pylint: disable=unused-import
788
787
  import cirq.testing._compat_test_data.broken_ref as br # type: ignore
cirq/_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.3.0.dev20230720000937"
1
+ __version__ = "1.3.0.dev20230725010808"
cirq/qis/measures.py CHANGED
@@ -211,7 +211,7 @@ def _numpy_arrays_to_state_vectors_or_density_matrices(
211
211
  state2.shape[0] if state2.ndim == 2 else np.prod(state2.shape, dtype=np.int64).item()
212
212
  )
213
213
  if dim1 != dim2:
214
- raise ValueError('Mismatched dimensions in given states: ' f'{dim1} and {dim2}.')
214
+ raise ValueError(f'Mismatched dimensions in given states: {dim1} and {dim2}.')
215
215
  if qid_shape is None:
216
216
  qid_shape = (dim1,)
217
217
  else:
cirq/qis/states.py CHANGED
@@ -314,7 +314,7 @@ def density_matrix(
314
314
  ValueError: Invalid density matrix.
315
315
  """
316
316
  if state.ndim != 2 or state.shape[0] != state.shape[1]:
317
- raise ValueError('A density matrix must be a square matrix. ' f'Got shape {state.shape}.')
317
+ raise ValueError(f'A density matrix must be a square matrix. Got shape {state.shape}.')
318
318
  dim, _ = state.shape
319
319
  if qid_shape is None:
320
320
  qid_shape = _infer_qid_shape_from_dimension(dim)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.3.0.dev20230720000937
3
+ Version: 1.3.0.dev20230725010808
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
@@ -1,10 +1,10 @@
1
1
  cirq/__init__.py,sha256=LMECXdmns--tpCJ6gNtPE7aS-XcOeSG4U83ANhOZPPw,15553
2
2
  cirq/_compat.py,sha256=9o8FaxU8z0Wu0sM5aNfPndmIkS-zrn6KvY_ZUXyL0RY,28805
3
- cirq/_compat_test.py,sha256=tFt1lskrZi_Pmn8ZDeMxxfCNTivqVGzKiIYrskK0dE4,33898
3
+ cirq/_compat_test.py,sha256=OeiMBsoRJUHle-qYNP9qG1-IcbRhCMW0JUKou1lNFX0,33886
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=jsORsRqZL1lxQsxncxVy4e14Reze-JwnTix5A2fnUKo,40
7
+ cirq/_version.py,sha256=HsCk1eeWoVCDndjUZODEjSnzQ9MRS0prdsKWkjYB3kk,40
8
8
  cirq/_version_test.py,sha256=Ea3ZNdQKZBsZrSc9xle7TUdT9bUINs-qezPruQ_m38s,133
9
9
  cirq/conftest.py,sha256=mHCDs5--u17oLFDAfIlkTS4TRGSc35eLnZ2CXuIuB7I,1175
10
10
  cirq/json_resolver_cache.py,sha256=JJiO1dhHsEqYClUv68eg-hiOzbb_C1QiQ-BCcvoe4Ck,13067
@@ -867,10 +867,10 @@ cirq/qis/channels.py,sha256=AxKgLUbWLrb1pz9xLtSpYm_stjN-IWOwLFYC9YZSons,12798
867
867
  cirq/qis/channels_test.py,sha256=iqkSyfvx_c2ZpJKAVEsFyZRmKpzNrJsyFjHbaJUMqcQ,14454
868
868
  cirq/qis/clifford_tableau.py,sha256=YG_3EXcJibRgX_HvlSCcTrMVvdqPkPUVQdt1_qf79R4,25185
869
869
  cirq/qis/clifford_tableau_test.py,sha256=Z-5YSysJw2H3AfgZxhptvUMr5GUjUFgPcAUdcust9Qk,18441
870
- cirq/qis/measures.py,sha256=oJVM9GN3bYSgPYqE0KVaptpflTNZYIX_fzws1AS4j5k,12197
870
+ cirq/qis/measures.py,sha256=-e2mStl9882z4mbLwWtbdmmdJilmf6Ex2b_jSXhMX3c,12194
871
871
  cirq/qis/measures_test.py,sha256=3LTTGdvuFfZWmFyWFeUHpg1yGc9z0VE8j7Kd7J7y8i4,10092
872
872
  cirq/qis/quantum_state_representation.py,sha256=5ybXGqjGSpSZqOn9q6OW6IBOmJs8KQekv5fFZZMCqZQ,3238
873
- cirq/qis/states.py,sha256=KWV5uFwpXAQGZ2VwZdS-246Nxj7XHVS3AH7eCgiOPpQ,42029
873
+ cirq/qis/states.py,sha256=wzs3WlkcgJ_V25OuIjFeNCxjUvmAIuHkY4oSPS2pzcA,42026
874
874
  cirq/qis/states_test.py,sha256=I4fHt5drqG0C36bvmU-H7DfY3zOC8CfiZFzKJvSOnFs,31813
875
875
  cirq/sim/__init__.py,sha256=k2vuvTMqNvYr8yd5mvi5028e5z-vMDmJ1sML60HHe2Y,2276
876
876
  cirq/sim/density_matrix_simulation_state.py,sha256=AFJoQGXkAFYyLW0wZmOZnTb2ePSX2wiTVeY6qFoB5eo,13470
@@ -1140,8 +1140,8 @@ cirq/work/sampler.py,sha256=JVv1vvfa6EgFiR3UeDk44U186dCrioH2NZXueCgsb9w,19828
1140
1140
  cirq/work/sampler_test.py,sha256=zo1Hj6sn6fLs_WZMxYRApBqgBsldmptn74NL0jhNukc,12325
1141
1141
  cirq/work/zeros_sampler.py,sha256=D3hbNZC-jXKuNAWg2OUiUuT8pmDV_WFnEfMank6In4o,2357
1142
1142
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1143
- cirq_core-1.3.0.dev20230720000937.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1144
- cirq_core-1.3.0.dev20230720000937.dist-info/METADATA,sha256=4aVQnibf7bodx2TDINW28qOSanKZZlkxVm0L2sO8SZI,2095
1145
- cirq_core-1.3.0.dev20230720000937.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
1146
- cirq_core-1.3.0.dev20230720000937.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1147
- cirq_core-1.3.0.dev20230720000937.dist-info/RECORD,,
1143
+ cirq_core-1.3.0.dev20230725010808.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1144
+ cirq_core-1.3.0.dev20230725010808.dist-info/METADATA,sha256=EsLJkIguYMI0pjkskuCvgYw7t3iTSnw4LaGdHHHpKn8,2095
1145
+ cirq_core-1.3.0.dev20230725010808.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
1146
+ cirq_core-1.3.0.dev20230725010808.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1147
+ cirq_core-1.3.0.dev20230725010808.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.40.0)
2
+ Generator: bdist_wheel (0.41.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5