702f8e1c68297c9ce2e8ea497cf098df67e01a49,qiskit/aqua/utils/measurement_error_mitigation.py,,get_measured_qubits_from_qobj,#Any#,58
Before Change
if qubit_mapping is None:
qubit_mapping = measured_qubits
else:
if qubit_mapping != measured_qubits:
raise AquaError("The qubit mapping of circuits are different."
"Currently, we only support single mapping.")
return qubit_mapping
// pylint: disable=invalid-name
After Change
measured_qubits_str = "_".join([str(x) for x in measured_qubits])
if measured_qubits_str not in qubit_mappings:
qubit_mappings[measured_qubits_str] = []
qubit_mappings [measured_qubits_str].append(idx)
if qubit_index is None:
qubit_index = measured_qubits
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: Qiskit/qiskit-aqua
Commit Name: 702f8e1c68297c9ce2e8ea497cf098df67e01a49
Time: 2020-03-20
Author: chunfuchen@users.noreply.github.com
File Name: qiskit/aqua/utils/measurement_error_mitigation.py
Class Name:
Method Name: get_measured_qubits_from_qobj
Project Name: Qiskit/qiskit-aqua
Commit Name: 702f8e1c68297c9ce2e8ea497cf098df67e01a49
Time: 2020-03-20
Author: chunfuchen@users.noreply.github.com
File Name: qiskit/aqua/utils/measurement_error_mitigation.py
Class Name:
Method Name: get_measured_qubits
Project Name: Qiskit/qiskit-aqua
Commit Name: 2623e2cc3a76b7e7c7c4ea95f93077c6270cd05c
Time: 2019-02-15
Author: shaohan.hu@ibm.com
File Name: test/test_simon.py
Class Name: TestSimon
Method Name: test_simon