q-optimize/c3

View on GitHub

Showing 160 of 330 total issues

Function grid2D has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

def grid2D(x_init, fun=None, fun_grad=None, grad_lookup=None, options={}):
Severity: Minor
Found in c3/libraries/algorithms.py - About 35 mins to fix

    Function state_transfer_infid has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def state_transfer_infid(ideal: np.ndarray, actual: tf.constant, index, dims, psi_0):
    Severity: Minor
    Found in c3/libraries/fidelities.py - About 35 mins to fix

      Function lindbladian_epc_analytical has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def lindbladian_epc_analytical(
      Severity: Minor
      Found in c3/libraries/fidelities.py - About 35 mins to fix

        Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def __init__(
        Severity: Minor
        Found in c3/libraries/tasks.py - About 35 mins to fix

          Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def __init__(
          Severity: Minor
          Found in c3/libraries/tasks.py - About 35 mins to fix

            Function tf_dU_of_t_lind has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            def tf_dU_of_t_lind(h0, hks, col_ops, cflds_t, dt):
            Severity: Minor
            Found in c3/libraries/propagation.py - About 35 mins to fix

              Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def __init__(
              Severity: Minor
              Found in c3/c3objs.py - About 35 mins to fix

                Function rk4 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def rk4(func, rho, h, dt, col=None):
                Severity: Minor
                Found in c3/libraries/propagation.py - About 35 mins to fix

                  Function rk38 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def rk38(func, rho, h, dt, col=None):
                  Severity: Minor
                  Found in c3/libraries/propagation.py - About 35 mins to fix

                    Function rk5 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def rk5(func, rho, h, dt, col=None):
                    Severity: Minor
                    Found in c3/libraries/propagation.py - About 35 mins to fix

                      Function tsit5 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def tsit5(func, rho, h, dt, col=None):
                      Severity: Minor
                      Found in c3/libraries/propagation.py - About 35 mins to fix

                        Function add_component has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def add_component(self, comp: C3obj, chan: str, options=None, name=None) -> None:
                        Severity: Minor
                        Found in c3/signal/gates.py - About 35 mins to fix

                          Function lbfgs_grad_free has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          def lbfgs_grad_free(x_init, fun=None, fun_grad=None, grad_lookup=None, options={}):
                          Severity: Minor
                          Found in c3/libraries/algorithms.py - About 35 mins to fix

                            Function tf_adadelta has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            def tf_adadelta(
                            Severity: Minor
                            Found in c3/libraries/algorithms.py - About 35 mins to fix

                              Function cmaes has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              def cmaes(x_init, fun=None, fun_grad=None, grad_lookup=None, options={}):
                              Severity: Minor
                              Found in c3/libraries/algorithms.py - About 35 mins to fix

                                Function average_infid_seq has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                def average_infid_seq(propagators: dict, instructions: dict, index, dims, n_eval=-1):
                                Severity: Minor
                                Found in c3/libraries/fidelities.py - About 35 mins to fix

                                  Function epc_analytical has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def epc_analytical(propagators: dict, index, dims, proj: bool, cliffords=False):
                                  Severity: Minor
                                  Found in c3/libraries/fidelities.py - About 35 mins to fix

                                    Function lindbladian_RB_right has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    def lindbladian_RB_right(propagators: dict, gate: str, index, dims, proj: bool):
                                    Severity: Minor
                                    Found in c3/libraries/fidelities.py - About 35 mins to fix

                                      Function log_pickle has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def log_pickle(self, params, seqs, results, results_std, shots):
                                      Severity: Minor
                                      Found in c3/optimizers/calibration.py - About 35 mins to fix

                                        Function single_eval has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        def single_eval(x_init, fun=None, fun_grad=None, grad_lookup=None, options={}):
                                        Severity: Minor
                                        Found in c3/libraries/algorithms.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language