cirq-aqt 1.5.0.dev20250403170622__py3-none-any.whl → 1.5.0.dev20250404165440__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-aqt might be problematic. Click here for more details.
- cirq_aqt/_version.py +1 -1
- cirq_aqt/_version_test.py +1 -1
- cirq_aqt/aqt_device.py +3 -3
- cirq_aqt/aqt_device_metadata.py +10 -11
- cirq_aqt/aqt_target_gateset.py +3 -3
- {cirq_aqt-1.5.0.dev20250403170622.dist-info → cirq_aqt-1.5.0.dev20250404165440.dist-info}/METADATA +2 -2
- {cirq_aqt-1.5.0.dev20250403170622.dist-info → cirq_aqt-1.5.0.dev20250404165440.dist-info}/RECORD +10 -10
- {cirq_aqt-1.5.0.dev20250403170622.dist-info → cirq_aqt-1.5.0.dev20250404165440.dist-info}/LICENSE +0 -0
- {cirq_aqt-1.5.0.dev20250403170622.dist-info → cirq_aqt-1.5.0.dev20250404165440.dist-info}/WHEEL +0 -0
- {cirq_aqt-1.5.0.dev20250403170622.dist-info → cirq_aqt-1.5.0.dev20250404165440.dist-info}/top_level.txt +0 -0
cirq_aqt/_version.py
CHANGED
cirq_aqt/_version_test.py
CHANGED
cirq_aqt/aqt_device.py
CHANGED
|
@@ -249,9 +249,9 @@ class AQTDevice(cirq.Device):
|
|
|
249
249
|
|
|
250
250
|
def __init__(
|
|
251
251
|
self,
|
|
252
|
-
measurement_duration:
|
|
253
|
-
twoq_gates_duration:
|
|
254
|
-
oneq_gates_duration:
|
|
252
|
+
measurement_duration: cirq.DURATION_LIKE,
|
|
253
|
+
twoq_gates_duration: cirq.DURATION_LIKE,
|
|
254
|
+
oneq_gates_duration: cirq.DURATION_LIKE,
|
|
255
255
|
qubits: Iterable[cirq.LineQubit],
|
|
256
256
|
) -> None:
|
|
257
257
|
"""Initializes the description of an ion trap device.
|
cirq_aqt/aqt_device_metadata.py
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
"""DeviceMetadata for ion trap device with mutually linked qubits placed on a line."""
|
|
17
16
|
|
|
18
17
|
from typing import Any, Iterable, Mapping
|
|
@@ -28,10 +27,10 @@ class AQTDeviceMetadata(cirq.DeviceMetadata):
|
|
|
28
27
|
|
|
29
28
|
def __init__(
|
|
30
29
|
self,
|
|
31
|
-
qubits: Iterable[
|
|
32
|
-
measurement_duration:
|
|
33
|
-
twoq_gates_duration:
|
|
34
|
-
oneq_gates_duration:
|
|
30
|
+
qubits: Iterable[cirq.LineQubit],
|
|
31
|
+
measurement_duration: cirq.DURATION_LIKE,
|
|
32
|
+
twoq_gates_duration: cirq.DURATION_LIKE,
|
|
33
|
+
oneq_gates_duration: cirq.DURATION_LIKE,
|
|
35
34
|
):
|
|
36
35
|
"""Create metadata object for AQTDevice.
|
|
37
36
|
|
|
@@ -60,12 +59,12 @@ class AQTDeviceMetadata(cirq.DeviceMetadata):
|
|
|
60
59
|
)
|
|
61
60
|
|
|
62
61
|
@property
|
|
63
|
-
def gateset(self) ->
|
|
62
|
+
def gateset(self) -> cirq.Gateset:
|
|
64
63
|
"""Returns the `cirq.Gateset` of supported gates on this device."""
|
|
65
64
|
return self._gateset
|
|
66
65
|
|
|
67
66
|
@property
|
|
68
|
-
def gate_durations(self) -> Mapping[
|
|
67
|
+
def gate_durations(self) -> Mapping[cirq.GateFamily, cirq.Duration]:
|
|
69
68
|
"""Get a dictionary of supported gate families and their gate operation durations.
|
|
70
69
|
|
|
71
70
|
Use `duration_of` to obtain duration of a specific `cirq.GateOperation` instance.
|
|
@@ -73,21 +72,21 @@ class AQTDeviceMetadata(cirq.DeviceMetadata):
|
|
|
73
72
|
return self._gate_durations
|
|
74
73
|
|
|
75
74
|
@property
|
|
76
|
-
def measurement_duration(self) ->
|
|
75
|
+
def measurement_duration(self) -> cirq.DURATION_LIKE:
|
|
77
76
|
"""Return the maximum duration of the measurement operation."""
|
|
78
77
|
return self._measurement_duration
|
|
79
78
|
|
|
80
79
|
@property
|
|
81
|
-
def oneq_gates_duration(self) ->
|
|
80
|
+
def oneq_gates_duration(self) -> cirq.DURATION_LIKE:
|
|
82
81
|
"""Return the maximum duration of an operation on one-qubit gates."""
|
|
83
82
|
return self._oneq_gates_duration
|
|
84
83
|
|
|
85
84
|
@property
|
|
86
|
-
def twoq_gates_duration(self) ->
|
|
85
|
+
def twoq_gates_duration(self) -> cirq.DURATION_LIKE:
|
|
87
86
|
"""Return the maximum duration of an operation on two-qubit gates."""
|
|
88
87
|
return self._twoq_gates_duration
|
|
89
88
|
|
|
90
|
-
def duration_of(self, operation:
|
|
89
|
+
def duration_of(self, operation: cirq.Operation) -> cirq.DURATION_LIKE:
|
|
91
90
|
"""Return the maximum duration of the specified gate operation.
|
|
92
91
|
|
|
93
92
|
Args:
|
cirq_aqt/aqt_target_gateset.py
CHANGED
|
@@ -42,7 +42,7 @@ class AQTTargetGateset(cirq.TwoQubitCompilationTargetGateset):
|
|
|
42
42
|
unroll_circuit_op=False,
|
|
43
43
|
)
|
|
44
44
|
|
|
45
|
-
def _decompose_single_qubit_operation(self, op:
|
|
45
|
+
def _decompose_single_qubit_operation(self, op: cirq.Operation, _: int) -> DecomposeResult:
|
|
46
46
|
# unwrap tagged and circuit operations to get the actual operation
|
|
47
47
|
opu = op.untagged
|
|
48
48
|
opu = (
|
|
@@ -57,7 +57,7 @@ class AQTTargetGateset(cirq.TwoQubitCompilationTargetGateset):
|
|
|
57
57
|
return [g.on(opu.qubits[0]) for g in gates]
|
|
58
58
|
return NotImplemented
|
|
59
59
|
|
|
60
|
-
def _decompose_two_qubit_operation(self, op:
|
|
60
|
+
def _decompose_two_qubit_operation(self, op: cirq.Operation, _) -> DecomposeResult:
|
|
61
61
|
if cirq.has_unitary(op):
|
|
62
62
|
return cirq.two_qubit_matrix_to_ion_operations(
|
|
63
63
|
op.qubits[0], op.qubits[1], cirq.unitary(op)
|
|
@@ -65,6 +65,6 @@ class AQTTargetGateset(cirq.TwoQubitCompilationTargetGateset):
|
|
|
65
65
|
return NotImplemented
|
|
66
66
|
|
|
67
67
|
@property
|
|
68
|
-
def postprocess_transformers(self) -> List[
|
|
68
|
+
def postprocess_transformers(self) -> List[cirq.TRANSFORMER]:
|
|
69
69
|
"""List of transformers which should be run after decomposing individual operations."""
|
|
70
70
|
return [cirq.drop_negligible_operations, cirq.drop_empty_moments]
|
{cirq_aqt-1.5.0.dev20250403170622.dist-info → cirq_aqt-1.5.0.dev20250404165440.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cirq-aqt
|
|
3
|
-
Version: 1.5.0.
|
|
3
|
+
Version: 1.5.0.dev20250404165440
|
|
4
4
|
Summary: A Cirq package to simulate and connect to Alpine Quantum Technologies quantum computers
|
|
5
5
|
Home-page: http://github.com/quantumlib/cirq
|
|
6
6
|
Author: The Cirq Developers
|
|
@@ -29,7 +29,7 @@ Requires-Python: >=3.10.0
|
|
|
29
29
|
Description-Content-Type: text/markdown
|
|
30
30
|
License-File: LICENSE
|
|
31
31
|
Requires-Dist: requests~=2.32
|
|
32
|
-
Requires-Dist: cirq-core==1.5.0.
|
|
32
|
+
Requires-Dist: cirq-core==1.5.0.dev20250404165440
|
|
33
33
|
|
|
34
34
|
<div align="center">
|
|
35
35
|
<img width="190px" alt="Cirq logo"
|
{cirq_aqt-1.5.0.dev20250403170622.dist-info → cirq_aqt-1.5.0.dev20250404165440.dist-info}/RECORD
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
cirq_aqt/__init__.py,sha256=M8r1U_8xYpcIUhs8U110BFWQ4jUCqS9IQf8trjq0rvI,888
|
|
2
|
-
cirq_aqt/_version.py,sha256=
|
|
3
|
-
cirq_aqt/_version_test.py,sha256=
|
|
4
|
-
cirq_aqt/aqt_device.py,sha256=
|
|
5
|
-
cirq_aqt/aqt_device_metadata.py,sha256=
|
|
2
|
+
cirq_aqt/_version.py,sha256=bm0mHJsJdUjkDOGeO_yFN6yQAI3bvGcOCB8DTMnHQm0,696
|
|
3
|
+
cirq_aqt/_version_test.py,sha256=6TvtSjVUbMM9q2qbVsTyvGlOH3pKfWNOJWaCCvH49uM,155
|
|
4
|
+
cirq_aqt/aqt_device.py,sha256=kiKhKPSUmebzFRiZrF7cq76ueHCC3SMF2CVrAAc6NfI,13648
|
|
5
|
+
cirq_aqt/aqt_device_metadata.py,sha256=2YIDZKJbt0iHdplBkjfDWK9FSbTzp6m_ggJTcFJfphk,4753
|
|
6
6
|
cirq_aqt/aqt_device_metadata_test.py,sha256=naTXEU4VCCdR__gBlzbWjR0-DzViZ1xgVrH_GAyjskY,2111
|
|
7
7
|
cirq_aqt/aqt_device_test.py,sha256=eYHT1DIt3EI_4e-rSROiUw5_E4A9Bjt8tIchvUrKnxs,5210
|
|
8
8
|
cirq_aqt/aqt_sampler.py,sha256=wBgTenfELWTx1fCMFaTio9WYpxiBiQndWNp8NAEsfMk,18378
|
|
9
9
|
cirq_aqt/aqt_sampler_test.py,sha256=cA68zrJTh57Ge8TW6xd4Q__l0wah_VJ4k6BL_SVPnHw,16403
|
|
10
10
|
cirq_aqt/aqt_simulator_test.py,sha256=QjqR6cULJdHEdTI4IxFCaJkhPIvR728hYCvg4RLPW-A,1641
|
|
11
|
-
cirq_aqt/aqt_target_gateset.py,sha256
|
|
11
|
+
cirq_aqt/aqt_target_gateset.py,sha256=-dxZ-dAEAZHtjPjTJ3VpTipXyYLI5m9-9skOCJmmAAE,2772
|
|
12
12
|
cirq_aqt/aqt_target_gateset_test.py,sha256=mZuuDvBl-o6l7ShNzcf_BrIc79I00To_RHt3y7hyOHg,3335
|
|
13
13
|
cirq_aqt/conftest.py,sha256=2-K0ZniZ28adwVNB-f5IqvYjavKEBwC4jes_WQ17Xzg,667
|
|
14
14
|
cirq_aqt/json_resolver_cache.py,sha256=oZUTckLvATBDSrn-Y6kEAjHjiGXtKc-Bz_i23WsxFj8,788
|
|
15
15
|
cirq_aqt/json_test_data/__init__.py,sha256=UZKkYSBrgpUKN5Y5Gb-SJzJAa7h-oTA0K3BKecMbDs8,904
|
|
16
16
|
cirq_aqt/json_test_data/spec.py,sha256=OfF8lLmTIVJF9ZgGoKBjx7tqYG5qvkLo6RqK19DtFCA,1050
|
|
17
|
-
cirq_aqt-1.5.0.
|
|
18
|
-
cirq_aqt-1.5.0.
|
|
19
|
-
cirq_aqt-1.5.0.
|
|
20
|
-
cirq_aqt-1.5.0.
|
|
21
|
-
cirq_aqt-1.5.0.
|
|
17
|
+
cirq_aqt-1.5.0.dev20250404165440.dist-info/LICENSE,sha256=tAkwu8-AdEyGxGoSvJ2gVmQdcicWw3j1ZZueVV74M-E,11357
|
|
18
|
+
cirq_aqt-1.5.0.dev20250404165440.dist-info/METADATA,sha256=MUVD1DOJWX01e3kCGo5VvVZY_I9gj7tG-Czto0jEWWk,4529
|
|
19
|
+
cirq_aqt-1.5.0.dev20250404165440.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
20
|
+
cirq_aqt-1.5.0.dev20250404165440.dist-info/top_level.txt,sha256=culYyFTEtuC3Z7wT3wZ6kGVspH3hYFZUEKooByfe9h0,9
|
|
21
|
+
cirq_aqt-1.5.0.dev20250404165440.dist-info/RECORD,,
|
{cirq_aqt-1.5.0.dev20250403170622.dist-info → cirq_aqt-1.5.0.dev20250404165440.dist-info}/LICENSE
RENAMED
|
File without changes
|
{cirq_aqt-1.5.0.dev20250403170622.dist-info → cirq_aqt-1.5.0.dev20250404165440.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|