cirq-core 1.5.0.dev20250102032600__py3-none-any.whl → 1.5.0.dev20250102034819__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/_version_test.py +1 -1
- cirq/ops/pauli_string_phasor.py +2 -0
- cirq/ops/pauli_string_phasor_test.py +7 -0
- {cirq_core-1.5.0.dev20250102032600.dist-info → cirq_core-1.5.0.dev20250102034819.dist-info}/METADATA +1 -1
- {cirq_core-1.5.0.dev20250102032600.dist-info → cirq_core-1.5.0.dev20250102034819.dist-info}/RECORD +9 -9
- {cirq_core-1.5.0.dev20250102032600.dist-info → cirq_core-1.5.0.dev20250102034819.dist-info}/LICENSE +0 -0
- {cirq_core-1.5.0.dev20250102032600.dist-info → cirq_core-1.5.0.dev20250102034819.dist-info}/WHEEL +0 -0
- {cirq_core-1.5.0.dev20250102032600.dist-info → cirq_core-1.5.0.dev20250102034819.dist-info}/top_level.txt +0 -0
cirq/_version.py
CHANGED
cirq/_version_test.py
CHANGED
cirq/ops/pauli_string_phasor.py
CHANGED
|
@@ -189,6 +189,8 @@ class PauliStringPhasor(gate_operation.GateOperation):
|
|
|
189
189
|
self, args: 'cirq.CircuitDiagramInfoArgs'
|
|
190
190
|
) -> 'cirq.CircuitDiagramInfo':
|
|
191
191
|
qubits = self.qubits if args.known_qubits is None else args.known_qubits
|
|
192
|
+
if not qubits:
|
|
193
|
+
return NotImplemented
|
|
192
194
|
|
|
193
195
|
def sym(qubit):
|
|
194
196
|
if qubit in self.pauli_string:
|
|
@@ -422,6 +422,13 @@ q2: ────────────────────[Z]───[X]^
|
|
|
422
422
|
)
|
|
423
423
|
|
|
424
424
|
|
|
425
|
+
def test_empty_phasor_diagram():
|
|
426
|
+
q = cirq.LineQubit(0)
|
|
427
|
+
op = cirq.PauliSumExponential(cirq.I(q))
|
|
428
|
+
circuit = cirq.Circuit(op)
|
|
429
|
+
cirq.testing.assert_has_diagram(circuit, ' (I)**-0.6366197723675815')
|
|
430
|
+
|
|
431
|
+
|
|
425
432
|
def test_repr():
|
|
426
433
|
q0, q1, q2 = _make_qubits(3)
|
|
427
434
|
cirq.testing.assert_equivalent_repr(
|
{cirq_core-1.5.0.dev20250102032600.dist-info → cirq_core-1.5.0.dev20250102034819.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cirq-core
|
|
3
|
-
Version: 1.5.0.
|
|
3
|
+
Version: 1.5.0.dev20250102034819
|
|
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.5.0.dev20250102032600.dist-info → cirq_core-1.5.0.dev20250102034819.dist-info}/RECORD
RENAMED
|
@@ -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=
|
|
8
|
-
cirq/_version_test.py,sha256=
|
|
7
|
+
cirq/_version.py,sha256=kgvm5CodZqsqYoGH8-YpjCppJL-VTOmrGh6RnHNnq9c,1206
|
|
8
|
+
cirq/_version_test.py,sha256=YvMi76rsQapkszyzZ3F4dbiYTcAmostPi5RSQY2TjOI,147
|
|
9
9
|
cirq/conftest.py,sha256=X7yLFL8GLhg2CjPw0hp5e_dGASfvHx1-QT03aUbhKJw,1168
|
|
10
10
|
cirq/json_resolver_cache.py,sha256=03MVo6Y-UYrzt9CKHmwpiBLN2ixL6uSU-OWnKZXfG7k,13302
|
|
11
11
|
cirq/py.typed,sha256=VFSlmh_lNwnaXzwY-ZuW-C2Ws5PkuDoVgBdNCs0jXJE,63
|
|
@@ -333,8 +333,8 @@ cirq/ops/pauli_interaction_gate_test.py,sha256=U9ORW5Ayx5PESPFiGESzWY-02qHklYcM1
|
|
|
333
333
|
cirq/ops/pauli_measurement_gate.py,sha256=AS9tzLGAOhJzRzVsW9m-WPz5Wx0sMS1jzhppn5qtW84,7239
|
|
334
334
|
cirq/ops/pauli_measurement_gate_test.py,sha256=uh3J0Ps3V3578V8qkRiEgIl6jBiv8DsXlk_vzLvOEhQ,6720
|
|
335
335
|
cirq/ops/pauli_string.py,sha256=G_w4vq1Jt6eHp1YEtTnfnpQ9QnoIGhtRI6zgXOWh8vY,67503
|
|
336
|
-
cirq/ops/pauli_string_phasor.py,sha256=
|
|
337
|
-
cirq/ops/pauli_string_phasor_test.py,sha256=
|
|
336
|
+
cirq/ops/pauli_string_phasor.py,sha256=U-axS69J_PRq9XsFGwTQqb9JaT_D1EUlgWuqDaWpbEc,17671
|
|
337
|
+
cirq/ops/pauli_string_phasor_test.py,sha256=91YXIm9RbqrG8dPdA18E9i4G7JT1epGvM4BZu6_YVzw,27796
|
|
338
338
|
cirq/ops/pauli_string_raw_types.py,sha256=6CgdPWYmOziP4uZbrIsRW0sDSMmV1GioGdAk0owFITU,2240
|
|
339
339
|
cirq/ops/pauli_string_raw_types_test.py,sha256=SZPluslZPGffPq93F5apESBygWZ2cj7BEX6dQuawRQE,2648
|
|
340
340
|
cirq/ops/pauli_string_test.py,sha256=ekj755Fe5up8-0nXCozUlne6NCxvb8FrwZ8Qp6CAmRI,74583
|
|
@@ -1189,8 +1189,8 @@ cirq/work/sampler.py,sha256=bE5tmVkcR6cZZMLETxDfHehdsYUMbx2RvBeIBetehI4,19187
|
|
|
1189
1189
|
cirq/work/sampler_test.py,sha256=hL2UWx3dz2ukZVNxWftiKVvJcQoLplLZdQm-k1QcA40,13282
|
|
1190
1190
|
cirq/work/zeros_sampler.py,sha256=x1C7cup66a43n-3tm8QjhiqJa07qcJW10FxNp9jJ59Q,2356
|
|
1191
1191
|
cirq/work/zeros_sampler_test.py,sha256=JIkpBBFPJe5Ba4142vzogyWyboG1Q1ZAm0UVGgOoZn8,3279
|
|
1192
|
-
cirq_core-1.5.0.
|
|
1193
|
-
cirq_core-1.5.0.
|
|
1194
|
-
cirq_core-1.5.0.
|
|
1195
|
-
cirq_core-1.5.0.
|
|
1196
|
-
cirq_core-1.5.0.
|
|
1192
|
+
cirq_core-1.5.0.dev20250102034819.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
1193
|
+
cirq_core-1.5.0.dev20250102034819.dist-info/METADATA,sha256=HnJ0M5elpdegeYKZnHgE2j8n3uWhvJxpAt9tnkoqoRU,1992
|
|
1194
|
+
cirq_core-1.5.0.dev20250102034819.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
1195
|
+
cirq_core-1.5.0.dev20250102034819.dist-info/top_level.txt,sha256=Sz9iOxHU0IEMLSFGwiwOCaN2e9K-jFbBbtpPN1hB73g,5
|
|
1196
|
+
cirq_core-1.5.0.dev20250102034819.dist-info/RECORD,,
|
{cirq_core-1.5.0.dev20250102032600.dist-info → cirq_core-1.5.0.dev20250102034819.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_core-1.5.0.dev20250102032600.dist-info → cirq_core-1.5.0.dev20250102034819.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|