Skip to content

Commit b741618

Browse files
authored
Exclude OQD packages, modules and data from wheels (#1403)
**Context:** A number of OQD packages, modules and data files had been added recently (e.g. #1348 and #1355). However, as support for OQD devices is still under development, these files should not be included in the wheels. **Description of the Change:** Excludes _all_ OQD packages, modules and data files (such as toml config files) from the wheels. Furthermore, the OQD device entry in the [Supported devices documentation](https://docs.pennylane.ai/projects/catalyst/en/stable/dev/devices.html) has also been removed.
1 parent 44ad2e7 commit b741618

File tree

5 files changed

+9
-18
lines changed

5 files changed

+9
-18
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ recursive-include frontend/catalyst/lib *
33
recursive-include frontend/catalyst/enzyme *
44
recursive-include frontend/mlir_quantum *
55
recursive-include frontend/catalyst/third_party/cuda/ *.toml
6-
recursive-include frontend/catalyst/third_party/oqd/ *.toml

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ wheel:
194194
cp $(OQC_BUILD_DIR)/librtd_oqc* $(MK_DIR)/frontend/catalyst/lib
195195
cp $(OQC_BUILD_DIR)/oqc_python_module.so $(MK_DIR)/frontend/catalyst/lib
196196
cp $(OQC_BUILD_DIR)/backend/*.toml $(MK_DIR)/frontend/catalyst/lib/backend
197-
cp $(OQD_BUILD_DIR)/librtd_oqd* $(MK_DIR)/frontend/catalyst/lib
198-
cp $(OQD_BUILD_DIR)/backend/*.toml $(MK_DIR)/frontend/catalyst/lib/backend
199197
cp $(COPY_FLAGS) $(LLVM_BUILD_DIR)/lib/libmlir_float16_utils.* $(MK_DIR)/frontend/catalyst/lib
200198
cp $(COPY_FLAGS) $(LLVM_BUILD_DIR)/lib/libmlir_c_runner_utils.* $(MK_DIR)/frontend/catalyst/lib
201199
cp $(COPY_FLAGS) $(LLVM_BUILD_DIR)/lib/libmlir_async_runtime.* $(MK_DIR)/frontend/catalyst/lib

doc/dev/devices.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,3 @@ Supported backend devices include:
9595
9696
See the `Catalyst configuration file <https://github.com/PennyLaneAI/catalyst/blob/main/frontend/catalyst/third_party/oqc/src/oqc.toml>`__
9797
for natively supported instructions.
98-
99-
* - ``oqd.default``
100-
101-
- Experimental support for execution on `Open Quantum Design (OQD) <https://openquantumdesign.org/>`__
102-
trapped-ion hardware. To use OQD with Catalyst, use the ``backend`` argument to specify the
103-
OQD backend to use when initializing the device:
104-
105-
.. code-block:: python
106-
107-
dev = qml.device("oqd", backend="default", shots=1024, wires=2)
108-
109-
See the `Catalyst configuration file <https://github.com/PennyLaneAI/catalyst/blob/main/frontend/catalyst/third_party/oqd/src/oqd.toml>`__
110-
for natively supported instructions.

doc/releases/changelog-dev.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@
168168

169169
* A default backend for OQD trapped-ion quantum devices has been added.
170170
[(#1355)](https://github.com/PennyLaneAI/catalyst/pull/1355)
171+
[(#1403)](https://github.com/PennyLaneAI/catalyst/pull/1355)
172+
173+
Support for OQD devices is still under development, therefore the OQD modules are currently not
174+
included in the distributed wheels.
171175

172176
* `expval` and `var` operations no longer keep the static shots attribute, as a step towards supporting dynamic shots across catalyst.
173177
[(#1360)](https://github.com/PennyLaneAI/catalyst/pull/1360)

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
entry_points = {
8585
"pennylane.plugins": [
8686
"oqc.cloud = catalyst.third_party.oqc:OQCDevice",
87-
"oqd = catalyst.third_party.oqd:OQDDevice",
8887
"softwareq.qpp = catalyst.third_party.cuda:SoftwareQQPP",
8988
"nvidia.custatevec = catalyst.third_party.cuda:NvidiaCuStateVec",
9089
"nvidia.cutensornet = catalyst.third_party.cuda:NvidiaCuTensorNet",
@@ -331,7 +330,11 @@ def run(self):
331330
packages=find_namespace_packages(
332331
where="frontend",
333332
include=["catalyst", "catalyst.*", "mlir_quantum"],
334-
exclude=["catalyst.third_party.oqc.*"],
333+
exclude=[
334+
"catalyst.third_party.oqc.*",
335+
"catalyst.third_party.oqd.*",
336+
"catalyst.third_party.oqd", # Exclude OQD from wheels as it is still under development
337+
],
335338
),
336339
package_dir={"": "frontend"},
337340
include_package_data=True,

0 commit comments

Comments
 (0)