7dbf6335c0fe5ee075645ada966861d1346c21c5,qiskit/chemistry/components/variational_forms/uccsd.py,UCCSD,__init__,#UCCSD#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,94

Before Change


         Raises:
             ValueError: Computed qubits do not match actual value
        
        validate(locals(), self._INPUT_SCHEMA)
        super().__init__()

        self._z2_symmetries = Z2Symmetries([], [], [], []) \

After Change


        validate_min("depth", depth, 1)
        validate_min("num_orbitals", num_orbitals, 1)
        if isinstance(num_particles, list) and len(num_particles) != 2:
            raise ValueError("Num particles value {}. Number of values allowed is 2".format(
                num_particles))
        validate_in_set("qubit_mapping", qubit_mapping,
                        {"jordan_wigner", "parity", "bravyi_kitaev"})
        validate_min("num_time_slices", num_time_slices, 1)
        super().__init__()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: 7dbf6335c0fe5ee075645ada966861d1346c21c5
Time: 2020-01-04
Author: manoel@us.ibm.com
File Name: qiskit/chemistry/components/variational_forms/uccsd.py
Class Name: UCCSD
Method Name: __init__


Project Name: Qiskit/qiskit-aqua
Commit Name: 7dbf6335c0fe5ee075645ada966861d1346c21c5
Time: 2020-01-04
Author: manoel@us.ibm.com
File Name: qiskit/chemistry/components/initial_states/hartree_fock.py
Class Name: HartreeFock
Method Name: __init__


Project Name: etal/cnvkit
Commit Name: 5bfa69a11ac39e4236be07c1ea445d53732da252
Time: 2016-10-07
Author: eric.talevich@gmail.com
File Name: cnvlib/gary.py
Class Name: GenomicArray
Method Name: _make_blank