cirq-core 1.5.0.dev20240801173131__py3-none-any.whl → 1.5.0.dev20240802204604__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 CHANGED
@@ -28,4 +28,4 @@ if sys.version_info < (3, 10, 0): # pragma: no cover
28
28
  'of cirq (e.g. "python -m pip install cirq==1.1.*")'
29
29
  )
30
30
 
31
- __version__ = "1.5.0.dev20240801173131"
31
+ __version__ = "1.5.0.dev20240802204604"
cirq/_version_test.py CHANGED
@@ -3,4 +3,4 @@ import cirq
3
3
 
4
4
 
5
5
  def test_version():
6
- assert cirq.__version__ == "1.5.0.dev20240801173131"
6
+ assert cirq.__version__ == "1.5.0.dev20240802204604"
@@ -147,7 +147,7 @@ def sample_heavy_set(
147
147
 
148
148
  results = results.agg(lambda meas: cirq.value.big_endian_bits_to_int(meas), axis=1)
149
149
  # Compute the number of outputs that are in the heavy set.
150
- num_in_heavy_set = np.sum(np.in1d(results, heavy_set)).item()
150
+ num_in_heavy_set = np.sum(np.isin(results, heavy_set)).item()
151
151
 
152
152
  # Return the number of Heavy outputs over the number of valid runs.
153
153
  return num_in_heavy_set / len(results)
@@ -390,7 +390,7 @@ def apply_unitary(
390
390
  # Try each strategy, stopping if one works.
391
391
  # Also catch downcasting warnings and throw an error: #2041
392
392
  with warnings.catch_warnings():
393
- warnings.filterwarnings(action="error", category=np.ComplexWarning)
393
+ warnings.filterwarnings(action="error", category=np.exceptions.ComplexWarning)
394
394
  for strat in strats:
395
395
  result = strat(unitary_value, args)
396
396
  if result is None:
@@ -714,7 +714,8 @@ def test_cast_to_complex():
714
714
  )
715
715
 
716
716
  with pytest.raises(
717
- np.ComplexWarning, match='Casting complex values to real discards the imaginary part'
717
+ np.exceptions.ComplexWarning,
718
+ match='Casting complex values to real discards the imaginary part',
718
719
  ):
719
720
  cirq.apply_unitary(y0, args)
720
721
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.5.0.dev20240801173131
3
+ Version: 1.5.0.dev20240802204604
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
@@ -4,8 +4,8 @@ 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=pJ8I-5gM73ks_tQf37iTXBRf7qATvrAJ2RPDJfdDiT0,1206
8
- cirq/_version_test.py,sha256=K-JyiHJltRObC-ixvmHLogJHBK7pmijAbvTbDlw6my0,147
7
+ cirq/_version.py,sha256=fofT2SfngApxV900T3CFyyGQ0RP7H8CwKgtpU-wG_c0,1206
8
+ cirq/_version_test.py,sha256=5NMuIEkxMpTHPUv_5CVkyiMPHZFBpKftryBu11I3Cbc,147
9
9
  cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
10
10
  cirq/json_resolver_cache.py,sha256=ytePZtNZgKjOF2NiVpUTuotB-JKZmQNOFIFdvXqsxHw,13271
11
11
  cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
@@ -118,7 +118,7 @@ cirq/contrib/qcircuit/qcircuit_diagram_info_test.py,sha256=2CEJ3LCA-kaBeZOAc-2RR
118
118
  cirq/contrib/qcircuit/qcircuit_pdf.py,sha256=cLE5Ikypxpi5anx48FEyDJVh2kv4DbRU-7F0iaaTu4Q,2412
119
119
  cirq/contrib/qcircuit/qcircuit_test.py,sha256=TJI1mmIEhKkTQ-z1RBvLYU8oMu__x_eLP9aWAicJWjc,6021
120
120
  cirq/contrib/quantum_volume/__init__.py,sha256=UaZs0ghb0ebjLyHP08B6m6eaDthM31KHKW4jIe3qWpY,880
121
- cirq/contrib/quantum_volume/quantum_volume.py,sha256=8iFqqaS37nSTgYYy5pmQbao-VQuSGjl4TAqmDyCPG58,19597
121
+ cirq/contrib/quantum_volume/quantum_volume.py,sha256=we7K8_RQPGwMgVCziB38n1bHheU-MXhQD6pcIyN6giw,19597
122
122
  cirq/contrib/quantum_volume/quantum_volume_test.py,sha256=HREyULIBznCplzjOO8PbQkaMgEp_Ba2u9Pq3triixMk,12398
123
123
  cirq/contrib/quimb/__init__.py,sha256=XZ2cz9VWpTnJ9Jv3LUEBrDcDPPO1lomMeASPk1mvNHw,600
124
124
  cirq/contrib/quimb/density_matrix.py,sha256=3hvoXaJdHlJY97v8eCQZS50Xtqi5Z4hS2F4c6W4e7nc,8637
@@ -381,8 +381,8 @@ cirq/protocols/apply_channel_protocol.py,sha256=Unqz-0rVtTrB2tYuY8ZagQZNpJH5mpg_
381
381
  cirq/protocols/apply_channel_protocol_test.py,sha256=ETAWrBTVkPuUPUgHsLZo1HUsJnZsO0hD2fQeXlXtvjE,10582
382
382
  cirq/protocols/apply_mixture_protocol.py,sha256=d2SW3v2AW0flY4zseYrh-p4PM29uuonKZ3nUTGQDmes,16323
383
383
  cirq/protocols/apply_mixture_protocol_test.py,sha256=6sNZhauFDec2MvHmUsvmkVF-qjH1WLDnZO35RT0OtRY,10793
384
- cirq/protocols/apply_unitary_protocol.py,sha256=euKDlasTpz4pDKIU_sbYd6Zo7EXL_o4KOqXUbnmsQg8,29777
385
- cirq/protocols/apply_unitary_protocol_test.py,sha256=i8kRY-yQR_MAUqkyyQTOHFEYQYz5Z0i-Wb0rs5Jz0fI,26116
384
+ cirq/protocols/apply_unitary_protocol.py,sha256=f2O-69F72e91QIEHPe9UBWLroim1mB6Ul6L0pKVDqvE,29788
385
+ cirq/protocols/apply_unitary_protocol_test.py,sha256=ajjHvcBBv5n8Qh_hMPZkdsOvy1xJ774q4kuC25DJnKM,26136
386
386
  cirq/protocols/approximate_equality_protocol.py,sha256=P5mWl9BWGpobw3K7iAoupFPSqO9V2yG82rfQHWTClmM,6313
387
387
  cirq/protocols/approximate_equality_protocol_test.py,sha256=BYGw5iNU3lsdH5BUDPnqd9xfvfIo9-j5j0og_yXCQyY,9174
388
388
  cirq/protocols/circuit_diagram_info_protocol.py,sha256=3pPxDZrRBo1xj-SMj7rmtHpFyZ0IDDpHGylvEEYuoJM,15914
@@ -1181,8 +1181,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
1181
1181
  cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
1182
1182
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1183
1183
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1184
- cirq_core-1.5.0.dev20240801173131.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1185
- cirq_core-1.5.0.dev20240801173131.dist-info/METADATA,sha256=GDkC8gLZVAo09u8ARKsaOhAV8WnLwo9-TQF95k6a2Aw,2007
1186
- cirq_core-1.5.0.dev20240801173131.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1187
- cirq_core-1.5.0.dev20240801173131.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1188
- cirq_core-1.5.0.dev20240801173131.dist-info/RECORD,,
1184
+ cirq_core-1.5.0.dev20240802204604.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1185
+ cirq_core-1.5.0.dev20240802204604.dist-info/METADATA,sha256=7sKRYxtceMvEoiCBHNkTqTHIpAdK1rZRFXYe91vb7Go,2007
1186
+ cirq_core-1.5.0.dev20240802204604.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1187
+ cirq_core-1.5.0.dev20240802204604.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1188
+ cirq_core-1.5.0.dev20240802204604.dist-info/RECORD,,