cirq-core 1.4.0.dev20240409210425__py3-none-any.whl → 1.4.0.dev20240409221218__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/ops/qubit_manager.py +1 -1
- cirq/ops/qubit_manager_test.py +8 -0
- {cirq_core-1.4.0.dev20240409210425.dist-info → cirq_core-1.4.0.dev20240409221218.dist-info}/METADATA +1 -1
- {cirq_core-1.4.0.dev20240409210425.dist-info → cirq_core-1.4.0.dev20240409221218.dist-info}/RECORD +8 -8
- {cirq_core-1.4.0.dev20240409210425.dist-info → cirq_core-1.4.0.dev20240409221218.dist-info}/LICENSE +0 -0
- {cirq_core-1.4.0.dev20240409210425.dist-info → cirq_core-1.4.0.dev20240409221218.dist-info}/WHEEL +0 -0
- {cirq_core-1.4.0.dev20240409210425.dist-info → cirq_core-1.4.0.dev20240409221218.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.4.0.
|
|
1
|
+
__version__ = "1.4.0.dev20240409221218"
|
cirq/ops/qubit_manager.py
CHANGED
|
@@ -53,7 +53,7 @@ class _BaseAncillaQid(raw_types.Qid):
|
|
|
53
53
|
|
|
54
54
|
def __repr__(self) -> str:
|
|
55
55
|
dim_str = f', dim={self.dim}' if self.dim != 2 else ''
|
|
56
|
-
prefix_str = f', prefix={self.prefix}' if self.prefix != '' else ''
|
|
56
|
+
prefix_str = f', prefix={self.prefix!r}' if self.prefix != '' else ''
|
|
57
57
|
return f"cirq.ops.{type(self).__name__}({self.id}{dim_str}{prefix_str})"
|
|
58
58
|
|
|
59
59
|
|
cirq/ops/qubit_manager_test.py
CHANGED
|
@@ -31,6 +31,10 @@ def test_clean_qubits():
|
|
|
31
31
|
assert str(q) == '_c(2) (d=3)'
|
|
32
32
|
assert repr(q) == 'cirq.ops.CleanQubit(2, dim=3)'
|
|
33
33
|
|
|
34
|
+
q = cqi.CleanQubit(3, dim=4, prefix="a")
|
|
35
|
+
assert str(q) == 'a_c(3) (d=4)'
|
|
36
|
+
assert repr(q) == "cirq.ops.CleanQubit(3, dim=4, prefix='a')"
|
|
37
|
+
|
|
34
38
|
assert cqi.CleanQubit(1) < cqi.CleanQubit(2)
|
|
35
39
|
|
|
36
40
|
|
|
@@ -58,6 +62,10 @@ def test_borrow_qubits():
|
|
|
58
62
|
assert str(q) == '_b(20) (d=4)'
|
|
59
63
|
assert repr(q) == 'cirq.ops.BorrowableQubit(20, dim=4)'
|
|
60
64
|
|
|
65
|
+
q = cqi.BorrowableQubit(30, dim=4, prefix="a")
|
|
66
|
+
assert str(q) == 'a_b(30) (d=4)'
|
|
67
|
+
assert repr(q) == "cirq.ops.BorrowableQubit(30, dim=4, prefix='a')"
|
|
68
|
+
|
|
61
69
|
assert cqi.BorrowableQubit(1) < cqi.BorrowableQubit(2)
|
|
62
70
|
|
|
63
71
|
|
{cirq_core-1.4.0.dev20240409210425.dist-info → cirq_core-1.4.0.dev20240409221218.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.dev20240409221218
|
|
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.dev20240409210425.dist-info → cirq_core-1.4.0.dev20240409221218.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=HZE7C-fPgZjY80Si77Za03HVl8tzqM4kmB42NNEYGNE,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
|
|
@@ -351,8 +351,8 @@ cirq/ops/projector.py,sha256=isDlNLR8YS5CxsVCihtRAgfKZXFFQxk7kuFXY14t8ys,5690
|
|
|
351
351
|
cirq/ops/projector_test.py,sha256=Wq7ddj-PV30yUXJxJoT3XIw2sIUC1AilnZ9m9N5Ejr8,9063
|
|
352
352
|
cirq/ops/qid_util.py,sha256=IO7vhq5RgeIujO2EhG_FCIvkIMMr2jTyz8gG5M0mrIU,2136
|
|
353
353
|
cirq/ops/qid_util_test.py,sha256=JdViBgFfH4bZJyPKTjUf9MuPxMQe08JV_Tl6tusekfk,1061
|
|
354
|
-
cirq/ops/qubit_manager.py,sha256=
|
|
355
|
-
cirq/ops/qubit_manager_test.py,sha256=
|
|
354
|
+
cirq/ops/qubit_manager.py,sha256=U8dML-iosNfQn16Ug62z2-b2PFf-iDWc1ZCLuUsIc-g,3539
|
|
355
|
+
cirq/ops/qubit_manager_test.py,sha256=SQ_6kOehIaMgRvU43nTOEy6UoDxZSeVzSYQ2Mfouexg,3371
|
|
356
356
|
cirq/ops/qubit_order.py,sha256=nYkcMg-y5QtR7M3W1HXq1IWJyMKjrTZXVK1GEbY6gng,5616
|
|
357
357
|
cirq/ops/qubit_order_or_list.py,sha256=WVnhQcOYCgAhiB4t47Kji-pN1tnvs--X5deCQwwGVno,1165
|
|
358
358
|
cirq/ops/qubit_order_test.py,sha256=B9xMIxlaI7YjRUNA6AkHJuUCFejGYw-lT7ZaSl31yTU,4238
|
|
@@ -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.dev20240409221218.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1173
|
+
cirq_core-1.4.0.dev20240409221218.dist-info/METADATA,sha256=474-ivltY3tOFDzidBHHAak81KfugHRsOu5y_1nfpy8,2098
|
|
1174
|
+
cirq_core-1.4.0.dev20240409221218.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
1175
|
+
cirq_core-1.4.0.dev20240409221218.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1176
|
+
cirq_core-1.4.0.dev20240409221218.dist-info/RECORD,,
|
{cirq_core-1.4.0.dev20240409210425.dist-info → cirq_core-1.4.0.dev20240409221218.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.4.0.dev20240409210425.dist-info → cirq_core-1.4.0.dev20240409221218.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|