qiskit/wrapper/_wrapper.py
def execute(circuits, backend,
            config=None, basis_gates=None, coupling_map=None, initial_layout=None,
            shots=1024, max_credits=10, seed=None, qobj_id=None, hpc=None,
            skip_transpiler=False):
    """Executes a set of circuits.

    Args:
        circuits (QuantumCircuit or list[QuantumCircuit]): circuits to execute
        backend (BaseBackend or str): a backend to execute the circuits on
        config (dict): dictionary of parameters (e.g. noise) used by runner
        basis_gates (str): comma-separated basis gate set to compile to
        coupling_map (list): coupling map (perhaps custom) to target in mapping
        initial_layout (list): initial layout of qubits in mapping
        shots (int): number of repetitions of each circuit, for sampling
        max_credits (int): maximum credits to use
        seed (int): random seed for simulators
        qobj_id (int): identifier for the generated qobj
        hpc (dict): HPC simulator parameters
        skip_transpiler (bool): skip most of the compile steps and produce qobj directly

    Returns:
        BaseJob: returns job instance derived from BaseJob

    .. deprecated:: 0.6+
        After 0.6, execute will only take a backend object, not string.
    """
    # pylint: disable=missing-param-doc, missing-type-doc
    if isinstance(backend, str):
        warnings.warn('execute() no longer takes backend string names. '
                      'Please pass backend objects, obtained via'
                      'IBMQ.get_backend() or Aer.get_backend().', DeprecationWarning)
        try:
            backend = Aer.get_backend(backend)
        except KeyError:
            backend = IBMQ.get_backend(backend)

    qobj = compile(circuits, backend,
                   config, basis_gates, coupling_map, initial_layout,
                   shots, max_credits, seed, qobj_id, hpc,
                   skip_transpiler)
    return backend.run(qobj)
Executes a set of circuits.

    Args:
        circuits (QuantumCircuit or list[QuantumCircuit]): circuits to execute
        backend (BaseBackend or str): a backend to execute the circuits on
        config (dict): dictionary of parameters (e.g. noise) used by runner
        basis_gates (str): comma-separated basis gate set to compile to
        coupling_map (list): coupling map (perhaps custom) to target in mapping
        initial_layout (list): initial layout of qubits in mapping
        shots (int): number of repetitions of each circuit, for sampling
        max_credits (int): maximum credits to use
        seed (int): random seed for simulators
        qobj_id (int): identifier for the generated qobj
        hpc (dict): HPC simulator parameters
        skip_transpiler (bool): skip most of the compile steps and produce qobj directly

    Returns:
        BaseJob: returns job instance derived from BaseJob

    .. deprecated:: 0.6+
        After 0.6, execute will only take a backend object, not string.
    
Executes a set of circuits.
Executes a set of circuits .
def execute(circuits, backend,
            config=None, basis_gates=None, coupling_map=None, initial_layout=None,
            shots=1024, max_credits=10, seed=None, qobj_id=None, hpc=None,
            skip_transpiler=False):
    if isinstance(backend, str):
        warnings.warn('execute() no longer takes backend string names. '
                      'Please pass backend objects, obtained via'
                      'IBMQ.get_backend() or Aer.get_backend().', DeprecationWarning)
        try:
            backend = Aer.get_backend(backend)
        except KeyError:
            backend = IBMQ.get_backend(backend)
    qobj = compile(circuits, backend,
                   config, basis_gates, coupling_map, initial_layout,
                   shots, max_credits, seed, qobj_id, hpc,
                   skip_transpiler)
    return backend.run(qobj)
def execute ( circuits , backend , config = None , basis_gates = None , coupling_map = None , initial_layout = None , shots = 1024 , max_credits = 10 , seed = None , qobj_id = None , hpc = None , skip_transpiler = False ) : if isinstance ( backend , str ) : warnings . warn ( 'execute() no longer takes backend string names. ' 'Please pass backend objects, obtained via' 'IBMQ.get_backend() or Aer.get_backend().' , DeprecationWarning ) try : backend = Aer . get_backend ( backend ) except KeyError : backend = IBMQ . get_backend ( backend ) qobj = compile ( circuits , backend , config , basis_gates , coupling_map , initial_layout , shots , max_credits , seed , qobj_id , hpc , skip_transpiler ) return backend . run ( qobj )
Executes a set of circuits.
Executes a set of circuits .
"""Executes a set of circuits.

    Args:
        circuits (QuantumCircuit or list[QuantumCircuit]): circuits to execute
        backend (BaseBackend or str): a backend to execute the circuits on
        config (dict): dictionary of parameters (e.g. noise) used by runner
        basis_gates (str): comma-separated basis gate set to compile to
        coupling_map (list): coupling map (perhaps custom) to target in mapping
        initial_layout (list): initial layout of qubits in mapping
        shots (int): number of repetitions of each circuit, for sampling
        max_credits (int): maximum credits to use
        seed (int): random seed for simulators
        qobj_id (int): identifier for the generated qobj
        hpc (dict): HPC simulator parameters
        skip_transpiler (bool): skip most of the compile steps and produce qobj directly

    Returns:
        BaseJob: returns job instance derived from BaseJob

    .. deprecated:: 0.6+
        After 0.6, execute will only take a backend object, not string.
    """ # pylint: disable=missing-param-doc, missing-type-doc
returns job instance derived from BaseJob
returns job instance derived from BaseJob
BaseJob
circuits
circuits to execute
circuits to execute
backend
a backend to execute the circuits on
a backend to execute the circuits on
config
dictionary of parameters  used by runner
dictionary of parameters used by runner
basis_gates
comma-separated basis gate set to compile to
comma - separated basis gate set to compile to
coupling_map
coupling map (perhaps custom) to target in mapping
coupling map ( perhaps custom ) to target in mapping
initial_layout
initial layout of qubits in mapping
initial layout of qubits in mapping
shots
number of repetitions of each circuit, for sampling
number of repetitions of each circuit for sampling
max_credits
maximum credits to use
maximum credits to use
seed
random seed for simulators
random seed for simulators
qobj_id
identifier for the generated qobj
identifier for the generated qobj
hpc
HPC simulator parameters
HPC simulator parameters
skip_transpiler
skip most of the compile steps and produce qobj directly
skip most of the compile steps and produce qobj directly