q-optimize/c3

View on GitHub

Showing 160 of 330 total issues

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

def state_transfer_from_states(states: tf.Tensor, index, dims, params, n_eval=-1):
Severity: Minor
Found in c3/libraries/fidelities.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 unitary_infid_set has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def unitary_infid_set(propagators: dict, instructions: dict, index, dims, n_eval=-1):
      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 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

            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 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 cma_pre_lbfgs has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def cma_pre_lbfgs(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_sgd has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def tf_sgd(
                  Severity: Minor
                  Found in c3/libraries/algorithms.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 average_infid_set has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      def average_infid_set(
                      Severity: Minor
                      Found in c3/libraries/fidelities.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 pwc has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

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

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

                            def sweep(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 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 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 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 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 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 tf_adam has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        def tf_adam(
                                        Severity: Minor
                                        Found in c3/libraries/algorithms.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language