bd12ec54e6b360019c83311c8cc685c252e306d8,test/test_qsvm_variational.py,TestQSVMVariational,test_qsvm_variational_directly,#TestQSVMVariational#,61

Before Change


        optimizer.set_options(save_steps=1)
        num_qubits = 2

        feature_map = get_pluggable_class(PluggableType.FEATURE_MAP,"SecondOrderExpansion")
        feature_map = feature_map()
        feature_map.init_args(num_qubits=num_qubits, depth=2)

        var_form = get_pluggable_class(PluggableType.VARIATIONAL_FORM,"RYRZ")
        var_form = var_form()
        var_form.init_args(num_qubits=num_qubits, depth=3)

        svm.init_args(self.training_data, self.testing_data, None, optimizer, feature_map, var_form)

After Change



    def test_qsvm_variational_directly(self):
        np.random.seed(self.random_seed)
        backend = Aer.get_backend("qasm_simulator")

        num_qubits = 2
        optimizer = SPSA(max_trials=10, c0=4.0, skip_calibration=True)
        optimizer.set_options(save_steps=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 10

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: bd12ec54e6b360019c83311c8cc685c252e306d8
Time: 2018-11-19
Author: chenrich@us.ibm.com
File Name: test/test_qsvm_variational.py
Class Name: TestQSVMVariational
Method Name: test_qsvm_variational_directly


Project Name: Qiskit/qiskit-aqua
Commit Name: 600633ca50dbae038f494162a67e3cab2a84b4b6
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_qsvm_kernel.py
Class Name: TestQSVMKernel
Method Name: test_qsvm_kernel_binary_directly_statevector


Project Name: Qiskit/qiskit-aqua
Commit Name: bd12ec54e6b360019c83311c8cc685c252e306d8
Time: 2018-11-19
Author: chenrich@us.ibm.com
File Name: test/test_qsvm_variational.py
Class Name: TestQSVMVariational
Method Name: test_qsvm_variational_directly


Project Name: Qiskit/qiskit-aqua
Commit Name: 600633ca50dbae038f494162a67e3cab2a84b4b6
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_qsvm_kernel.py
Class Name: TestQSVMKernel
Method Name: test_qsvm_kernel_binary_directly


Project Name: Qiskit/qiskit-aqua
Commit Name: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_vqe2iqpe.py
Class Name: TestVQE2IQPE
Method Name: test_vqe_2_iqpe