cirq-core 1.4.0.dev20240529191702__py3-none-any.whl → 1.4.0.dev20240529225110__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
@@ -1 +1 @@
1
- __version__ = "1.4.0.dev20240529191702"
1
+ __version__ = "1.4.0.dev20240529225110"
cirq/ops/raw_types.py CHANGED
@@ -1032,6 +1032,9 @@ class _InverseCompositeGate(Gate):
1032
1032
  def __repr__(self) -> str:
1033
1033
  return f'({self._original!r}**-1)'
1034
1034
 
1035
+ def __str__(self) -> str:
1036
+ return f'{self._original!s}†'
1037
+
1035
1038
 
1036
1039
  def _validate_qid_shape(val: Any, qubits: Sequence['cirq.Qid']) -> None:
1037
1040
  """Helper function to validate qubits for gates and operations.
@@ -759,6 +759,7 @@ def test_inverse_composite_standards():
759
759
  assert cirq.parameter_names(g) == {'a'}
760
760
  assert cirq.resolve_parameters(g, {a: 0}) == Gate(0) ** -1
761
761
  cirq.testing.assert_implements_consistent_protocols(g, global_vals={'C': Gate, 'a': a})
762
+ assert str(g) == 'C(a)†'
762
763
 
763
764
 
764
765
  def test_tagged_act_on():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cirq-core
3
- Version: 1.4.0.dev20240529191702
3
+ Version: 1.4.0.dev20240529225110
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,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=13U7SRIwlG3p-58kL0H_W0me2UxiezFelivykQJDWFI,40
7
+ cirq/_version.py,sha256=uD3BoyTyKJtRHlm-mDfuahYwc4N9ACffGyXF6freN8o,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=ytePZtNZgKjOF2NiVpUTuotB-JKZmQNOFIFdvXqsxHw,13271
@@ -358,8 +358,8 @@ cirq/ops/qubit_order_or_list.py,sha256=WVnhQcOYCgAhiB4t47Kji-pN1tnvs--X5deCQwwGV
358
358
  cirq/ops/qubit_order_test.py,sha256=B9xMIxlaI7YjRUNA6AkHJuUCFejGYw-lT7ZaSl31yTU,4238
359
359
  cirq/ops/random_gate_channel.py,sha256=gKDqZa6AwdCIuuh2UOvO5oxCdGRDOInA7fI3ZLQ-LTY,5121
360
360
  cirq/ops/random_gate_channel_test.py,sha256=U3EAaAlCZkgFIYxqwcSkPsaVGrKA2PSeG_DK2ou--AE,8606
361
- cirq/ops/raw_types.py,sha256=Un3C83tAsHHyXXrAWZSeaKunLITohjt6vTRGmAKAAII,39891
362
- cirq/ops/raw_types_test.py,sha256=r0Dpaw5xugvKltoX6fesB-ZCbsvOXTvqQJsEsxJNWmQ,33453
361
+ cirq/ops/raw_types.py,sha256=XJcbvBc5SgGELEk7LSnjPGVpq6OLOCoZt0FIzOCjBbc,39962
362
+ cirq/ops/raw_types_test.py,sha256=RWUiB2TypXxbDTVaetQ7h-buGScUcQgY6YsFkmodZGY,33484
363
363
  cirq/ops/state_preparation_channel.py,sha256=PjVtoLbjBAy_XqnFAY40Am-NifeuCFVVLW6RJxph5sQ,4778
364
364
  cirq/ops/state_preparation_channel_test.py,sha256=yKUvLw_ft6cvIgRJcFQ779wZS-V6V-pzQq-rZRWdCmU,5922
365
365
  cirq/ops/swap_gates.py,sha256=9eJMGyOiA8W9k2xJ_w5PaLOCHGvB6C4T2RLddIZ5qE8,11601
@@ -1175,8 +1175,8 @@ cirq/work/sampler.py,sha256=JEAeQQRF3bqlO9AkOf4XbrTATDI5f5JgyM_FAUCNxao,19751
1175
1175
  cirq/work/sampler_test.py,sha256=B2ZsuqGT854gQtBIAh8k0LiG9Vj5wSzcGvkxOUoTcW4,13217
1176
1176
  cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
1177
1177
  cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
1178
- cirq_core-1.4.0.dev20240529191702.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1179
- cirq_core-1.4.0.dev20240529191702.dist-info/METADATA,sha256=RokQjVHLC7VTvI2QbyeXUfqY9i6HesAu9oLxXs2791s,1998
1180
- cirq_core-1.4.0.dev20240529191702.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1181
- cirq_core-1.4.0.dev20240529191702.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1182
- cirq_core-1.4.0.dev20240529191702.dist-info/RECORD,,
1178
+ cirq_core-1.4.0.dev20240529225110.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
1179
+ cirq_core-1.4.0.dev20240529225110.dist-info/METADATA,sha256=Sw5UMKd7FYh2WMd1jQCnwECTW_jU56iMI17bZF7iMrI,1998
1180
+ cirq_core-1.4.0.dev20240529225110.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
1181
+ cirq_core-1.4.0.dev20240529225110.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
1182
+ cirq_core-1.4.0.dev20240529225110.dist-info/RECORD,,