744dad06bec303f437f4474e3730c9f3e8e700a9,qiskit/aqua/circuits/gates/controlled_ry_gate.py,,cry,#Any#Any#Any#Any#,28
Before Change
AquaError: invalid input
if not isinstance (q_control, Qubit) :
raise AquaError ("A qubit is expected for the control." )
if not self.has_register (q_control.register) :
raise AquaError ("The control qubit is expected to be part of the circuit." )
if not isinstance (q_target, Qubit) :
raise AquaError ("A qubit is expected for the target." )
if not self.has_register (q_target.register) :
After Change
if isinstance (qubit, Qubit) :
if not self.has_register (q_control.register) :
raise AquaError ("The {} qubit is expected to be part of the circuit." .format(name) )
elif isinstance (qubit, int ) :
if qubit > = self.n_qubits:
raise AquaError ("Qubit index out of range." )
else :
raise AquaError ("A qubit or int is expected for the {}." .format(name) )
if q_control == q_target:
raise AquaError ("The control and target need to be different qubits." )
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: Qiskit/qiskit-aqua
Commit Name: 744dad06bec303f437f4474e3730c9f3e8e700a9
Time: 2019-11-12
Author: jules.gacon@googlemail.com
File Name: qiskit/aqua/circuits/gates/controlled_ry_gate.py
Class Name:
Method Name: cry
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: 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