6991eb9379312094b22c6970b5b5724e06103eb1,qiskit/aqua/components/feature_maps/pauli_expansion.py,PauliExpansion,construct_circuit,#PauliExpansion#Any#Any#Any#,142

Before Change


            TypeError: invalid input
            ValueError: invalid input
        
        if not isinstance(x, np.ndarray):
            raise TypeError("x must be numpy array.")
        if x.ndim != 1:
            raise ValueError("x must be 1-D array.")
        if x.shape[0] != self._num_qubits:
            raise ValueError("number of qubits and data dimension must be the same.")

        if qr is None:

After Change


            TypeError: invalid input
            ValueError: invalid input
        
        if len(x) != self._num_qubits:
            raise ValueError("number of qubits and data dimension must be the same.")

        if qr is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 6991eb9379312094b22c6970b5b5724e06103eb1
Time: 2019-09-16
Author: chenrich@us.ibm.com
File Name: qiskit/aqua/components/feature_maps/pauli_expansion.py
Class Name: PauliExpansion
Method Name: construct_circuit


Project Name: prody/ProDy
Commit Name: d8307e788c7b54995466d5f422410e9578da4ed2
Time: 2019-01-16
Author: shz66@pitt.edu
File Name: prody/measure/transform.py
Class Name:
Method Name: calcRMSD


Project Name: Qiskit/qiskit-aqua
Commit Name: 854fad5f3901215ef5427a32657b72500c35adc8
Time: 2019-09-24
Author: chenrich@us.ibm.com
File Name: qiskit/aqua/components/feature_maps/raw_feature_vector.py
Class Name: RawFeatureVector
Method Name: construct_circuit