7dbf6335c0fe5ee075645ada966861d1346c21c5,qiskit/chemistry/core/hamiltonian.py,Hamiltonian,__init__,#Hamiltonian#Any#Any#Any#Any#Any#,98
Before Change
transformation = transformation.value
qubit_mapping = qubit_mapping.value
orbital_reduction = orbital_reduction if orbital_reduction is not None else []
validate(locals(), self._INPUT_SCHEMA)
super().__init__()
self._transformation = transformation
self._qubit_mapping = qubit_mapping
self._two_qubit_reduction = two_qubit_reduction
After Change
validate_in_set("transformation", transformation,
{TransformationType.FULL.value,
TransformationType.PARTICLE_HOLE.value})
validate_in_set("qubit_mapping", qubit_mapping,
{QubitMappingType.JORDAN_WIGNER.value,
QubitMappingType.PARITY.value,
QubitMappingType.BRAVYI_KITAEV.value})
super().__init__()
self._transformation = transformation
self._qubit_mapping = qubit_mapping
self._two_qubit_reduction = two_qubit_reduction
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: 7dbf6335c0fe5ee075645ada966861d1346c21c5
Time: 2020-01-04
Author: manoel@us.ibm.com
File Name: qiskit/chemistry/core/hamiltonian.py
Class Name: Hamiltonian
Method Name: __init__
Project Name: Qiskit/qiskit-aqua
Commit Name: 7dbf6335c0fe5ee075645ada966861d1346c21c5
Time: 2020-01-04
Author: manoel@us.ibm.com
File Name: qiskit/chemistry/core/hamiltonian.py
Class Name: Hamiltonian
Method Name: __init__
Project Name: Qiskit/qiskit-aqua
Commit Name: 7dbf6335c0fe5ee075645ada966861d1346c21c5
Time: 2020-01-04
Author: manoel@us.ibm.com
File Name: qiskit/chemistry/drivers/pyscfd/pyscfdriver.py
Class Name: PySCFDriver
Method Name: __init__
Project Name: Qiskit/qiskit-aqua
Commit Name: 7dbf6335c0fe5ee075645ada966861d1346c21c5
Time: 2020-01-04
Author: manoel@us.ibm.com
File Name: qiskit/chemistry/drivers/pyquanted/pyquantedriver.py
Class Name: PyQuanteDriver
Method Name: __init__