602c2de3f528a95a7c1cc785f608e3e93fd8e404,test/test_vqe2iqpe.py,TestVQE2IQPE,test_vqe_2_iqpe,#TestVQE2IQPE#,45
Before Change
state_in = VarFormBased()
state_in.init_args(var_form, result["opt_params"])
iqpe = get_pluggable_class(PluggableType.ALGORITHM,"IQPE")
iqpe = iqpe()
iqpe.setup_quantum_backend(backend="qasm_simulator", shots=100, skip_transpiler=True)
iqpe.init_args(
self.algo_input.qubit_op, state_in, num_time_slices, num_iterations,
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()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: 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: 602c2de3f528a95a7c1cc785f608e3e93fd8e404
Time: 2018-11-20
Author: chenrich@us.ibm.com
File Name: test/test_optimizers.py
Class Name: TestOptimizers
Method Name: test_spsa