65
65
default_backend : ["lightning_qubit"]
66
66
cuda_version : ["12"]
67
67
68
- name : ${{matrix.pl_backend}} Python Tests ( cuda-${{matrix.cuda_version}})
68
+ name : Python Tests ( ${{ matrix.pl_backend }}, cuda-${{ matrix.cuda_version }})
69
69
runs-on :
70
70
- ubuntu-22.04
71
71
- self-hosted
@@ -132,7 +132,7 @@ jobs:
132
132
py_path=$(which python)
133
133
echo "Python Interpreter Path => $py_path"
134
134
echo "python=$py_path" >> $GITHUB_OUTPUT
135
-
135
+
136
136
pip_path=$(which python)
137
137
echo "PIP Path => $pip_path"
138
138
echo "pip=$pip_path" >> $GITHUB_OUTPUT
@@ -165,7 +165,7 @@ jobs:
165
165
python -m pip uninstall -y pennylane && python -m pip install -U pennylane
166
166
167
167
- name : Build and install package
168
- env :
168
+ env :
169
169
CUQUANTUM_SDK : $(python -c "import site; print( f'{site.getsitepackages()[0]}/cuquantum')")
170
170
run : |
171
171
cd main
@@ -180,34 +180,34 @@ jobs:
180
180
181
181
- name : Run PennyLane-Lightning-GPU unit tests
182
182
if : ${{ matrix.pl_backend != 'all'}}
183
- env :
183
+ env :
184
184
OMP_NUM_THREADS : 1
185
185
OMP_PROC_BIND : false
186
186
run : |
187
187
cd main/
188
188
DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"`
189
- pl-device-test --device ${DEVICENAME} --skip-ops --shots=20000 $COVERAGE_FLAGS --cov-append
189
+ pl-device-test --device ${DEVICENAME} --skip-ops --shots=20000 $COVERAGE_FLAGS --cov-append
190
190
pl-device-test --device ${DEVICENAME} --shots=None --skip-ops $COVERAGE_FLAGS --cov-append
191
- PL_DEVICE=${DEVICENAME} python -m pytest tests/ $COVERAGE_FLAGS
191
+ PL_DEVICE=${DEVICENAME} python -m pytest tests/ $COVERAGE_FLAGS
192
192
mv coverage.xml coverage-${{ github.job }}-${{ matrix.pl_backend }}.xml
193
193
194
194
- name : Install all backend devices
195
195
if : ${{ matrix.pl_backend == 'all' }}
196
- env :
196
+ env :
197
197
CUQUANTUM_SDK : $(python -c "import site; print( f'{site.getsitepackages()[0]}/cuquantum')")
198
198
run : |
199
199
cd main
200
200
rm -rf build
201
201
CMAKE_ARGS="-DPL_BACKEND=${{matrix.default_backend}} -DENABLE_PYTHON=ON -DCMAKE_CXX_COMPILER=$(which g++-$GCC_VERSION)" \
202
202
python -m pip install . -vv
203
203
rm -rf build
204
-
204
+
205
205
CMAKE_ARGS="-DPL_BACKEND=${{ matrix.pl_backend }} -DENABLE_PYTHON=ON -DCMAKE_CXX_COMPILER=$(which g++-$GCC_VERSION)" \
206
206
python -m pip install . -vv
207
207
208
208
- name : Run PennyLane-Lightning unit tests for lightning.qubit with all devices installed
209
209
if : ${{ matrix.pl_backend == 'all' }}
210
- env :
210
+ env :
211
211
OMP_NUM_THREADS : 1
212
212
OMP_PROC_BIND : false
213
213
run : |
0 commit comments