File tree 2 files changed +17
-4
lines changed
test/algorithms/regressors
2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,11 @@ jobs:
122
122
python-version : 3.8
123
123
- os : windows-latest
124
124
python-version : 3.12
125
+ # macos-14 is an Arm64 image
126
+ - os : macos-14
127
+ python-version : ' 3.10'
128
+ - os : macos-14
129
+ python-version : 3.12
125
130
steps :
126
131
- uses : actions/checkout@v4
127
132
- uses : actions/setup-python@v5
@@ -301,12 +306,20 @@ jobs:
301
306
with :
302
307
name : windows-latest-3.12
303
308
path : /tmp/w312
309
+ - uses : actions/download-artifact@v4
310
+ with :
311
+ name : macos-14-3.10
312
+ path : /tmp/a310
313
+ - uses : actions/download-artifact@v4
314
+ with :
315
+ name : macos-14-3.12
316
+ path : /tmp/a312
304
317
- name : Install Dependencies
305
318
run : pip install -U coverage coveralls diff-cover
306
319
shell : bash
307
320
- name : Combined Deprecation Messages
308
321
run : |
309
- sort -f -u /tmp/u38/ml.dep /tmp/u39/ml.dep /tmp/u310/ml.dep /tmp/u311/ml.dep /tmp/u312/ml.dep /tmp/m38/ml.dep /tmp/m312/ml.dep /tmp/w38/ml.dep /tmp/w312/ml.dep || true
322
+ sort -f -u /tmp/u38/ml.dep /tmp/u39/ml.dep /tmp/u310/ml.dep /tmp/u311/ml.dep /tmp/u312/ml.dep /tmp/m38/ml.dep /tmp/m312/ml.dep /tmp/w38/ml.dep /tmp/w312/ml.dep /tmp/a310/ml.dep /tmp/a312/ml.dep || true
310
323
shell : bash
311
324
- name : Coverage combine
312
325
run : coverage3 combine /tmp/u38/ml.dat
Original file line number Diff line number Diff line change 1
1
# This code is part of a Qiskit project.
2
2
#
3
- # (C) Copyright IBM 2021, 2023 .
3
+ # (C) Copyright IBM 2021, 2024 .
4
4
#
5
5
# This code is licensed under the Apache License, Version 2.0. You may
6
6
# obtain a copy of this license in the LICENSE.txt file in the root directory
@@ -51,7 +51,7 @@ def setUp(self):
51
51
52
52
def test_qsvr (self ):
53
53
"""Test QSVR"""
54
- qkernel = FidelityQuantumKernel (feature_map = self .feature_map )
54
+ qkernel = FidelityQuantumKernel (feature_map = self .feature_map , enforce_psd = False )
55
55
56
56
qsvr = QSVR (quantum_kernel = qkernel )
57
57
qsvr .fit (self .sample_train , self .label_train )
@@ -61,7 +61,7 @@ def test_qsvr(self):
61
61
62
62
def test_change_kernel (self ):
63
63
"""Test QSVR with QuantumKernel later"""
64
- qkernel = FidelityQuantumKernel (feature_map = self .feature_map )
64
+ qkernel = FidelityQuantumKernel (feature_map = self .feature_map , enforce_psd = False )
65
65
66
66
qsvr = QSVR ()
67
67
qsvr .quantum_kernel = qkernel
You can’t perform that action at this time.
0 commit comments