Skip to main content

Invoke function

This document explains how to invoke a function to create a job.

Invoke function

How to invoke

Step 1: Select function to invoke

Functions

Step 2: Enter the necessary information in the "Invocation" section

1. Provider:

Depending on the SDK you choose, the providers provided here will also be different

Example:

  • Qiskit → IBM Quantum and Quapp

  • Braket → Quapp and Amazon Braket

    provider

2. Device:

Displays all devices provided by the provider you previously selected

Including hardware and simulator. Based on the name to distinguish. For simulators there will be “simulator“ in the device's name

Device

3. Shots: the number of times that quantum circuit is run

  • Default is 1024

  • Only integers can be entered

    Shots

4. Input:

Select "form-data":

  • key: field name (required)

  • value: the value of the field (not require)

Select "raw": Input can be input as JSON, String, or Integer depend on how you define it in function.

Input

Step 3: Click “Invoke”

After pressing “Invoke” will create 1 job

The latest job will appear at the top of the “Related jobs” table

Invoke

Job Details

There are 2 ways to enter the Job Details screen:

  1. From Function Details screen

  2. From Provider Details screen

From Function Details

Step 1: From Functions screen → Select function name you want to view

Function screen

Step 2: At Function Details screen → Jobs are listed by function (That is, even if the Provider is different, it will still be displayed in this job list)

Function details

From Provider Details

Step 1: From Providers screen → Select a provider you want to view

Providers

Step 2: At Provider Details screen → Jobs invoked at the selected provider will be displayed in the Related Jobs table (That is, even if the function is different, it will still be displayed in this job list)

Provider details

View Job Details

Step 1: At the Related Jobs table, select the job you want to view

Related jobs

Step 2: Job Details screen contains the following information:

Basic job information: Job id, function name, etc.

Job data

Job Files include:

  • Circuit: quantum circuit diagram circuit

  • Histogram: result chart Histogram

  • Result: job result as JSON results