c7042ae38552e58476c048237cd80d3fe087cdd7,qiskit/aqua/utils/entangler_map.py,,validate_entangler_map,#Any#Any#Any#,41

Before Change


            raise TypeError("Entangle index list expected but got {}".format(type(v)))

    ret_map = {}
    for k, v in entangler_map.items():
        ret_map[int(k)] = [int(x) for x in v]

    for k, v in ret_map.items():
        if k < 0 or k >= num_qubits:
            raise ValueError("Qubit value {} invalid for {} qubits".format(k, num_qubits))
        for i in v:

After Change


            raise TypeError("Entangle index list expected but got {}".format(type(src_to_targ)))

    ret_map = []
    ret_map = [[int(src), int(targ)] for src, targ in entangler_map]

    for src, targ in ret_map:
        if src < 0 or src >= num_qubits:
            raise ValueError("Qubit entangle source value {} invalid for {} qubits".format(src, num_qubits))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: c7042ae38552e58476c048237cd80d3fe087cdd7
Time: 2019-02-13
Author: chenrich@us.ibm.com
File Name: qiskit/aqua/utils/entangler_map.py
Class Name:
Method Name: validate_entangler_map


Project Name: Rostlab/nalaf
Commit Name: fe41a42ff872debbc18f465f003a314f5ad19d29
Time: 2015-09-20
Author: carsten.uhlig@gmail.com
File Name: nala/utils/tagger.py
Class Name: TmVarTagger
Method Name: generate_abstracts


Project Name: Qiskit/qiskit-aqua
Commit Name: c7042ae38552e58476c048237cd80d3fe087cdd7
Time: 2019-02-13
Author: chenrich@us.ibm.com
File Name: qiskit/aqua/utils/entangler_map.py
Class Name:
Method Name: validate_entangler_map


Project Name: thenetcircle/dino
Commit Name: 00cbe3e6d1250ce35742d07211f1f65889f4003e
Time: 2019-07-08
Author: oscar.eriks@gmail.com
File Name: bin/statsd-online-count.py
Class Name:
Method Name: online_count