602c2de3f528a95a7c1cc785f608e3e93fd8e404,test/test_vqe2iqpe.py,TestVQE2IQPE,test_vqe_2_iqpe,#TestVQE2IQPE#,45

Before Change


        var_form = var_form()
        var_form.init_args(num_qbits, 3)
        optimizer = get_pluggable_class(PluggableType.OPTIMIZER,"SPSA")
        optimizer = optimizer()
        optimizer.init_args(max_trials=10)
        // optimizer.set_options(**{"max_trials": 500})
        algo = get_pluggable_class(PluggableType.ALGORITHM,"VQE")
        algo = algo()
        algo.setup_quantum_backend(backend="qasm_simulator")

After Change


        backend = Aer.get_backend("qasm_simulator")
        num_qbits = self.algo_input.qubit_op.num_qubits
        var_form = RYRZ(num_qbits, 3)
        optimizer = SPSA(max_trials=10)
        // optimizer.set_options(**{"max_trials": 500})
        algo = VQE(self.algo_input.qubit_op, var_form, optimizer, "paulis")
        algo.setup_quantum_backend(backend=backend)
        result = algo.run()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


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


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