Skip to content

batchGroup

Specifies batch groups for parallel execution of qubit tasks.

Schema

YAML
name: str
qubits: List[List[str]] | None

Properties

Property

Type

Description

name

str

Name of the group.

qubits

List[List[str]] | None

List of qubit groups targeted by experiments in parallel. If not specified, all qubits will be targeted at once.

Examples

Specifying batch group for all qubits

If you want a task to be run simultaneously on all qubits, you don't have to specify the qubits property. In such it is enough to specify just the name of the batch group:

name: all_qubits

Manual selection of qubits in batch groups

Suppose you have a linear topology QPU with 8 qubits, and you’ve determined that measuring any qubit does not affect the result of measuring another, provided there are at least two qubits between them, e.g. you can run measurements on qubits 1, 4, and 7 at the same time without any loss of precision. In this case, you can define the following batch groups:

name: two_qubits_distance
qubits:
  - [Q1, Q4, Q7]
  - [Q2, Q5, Q8]
  - [Q3, Q6]

If you use this group in a task, it will result in the task being run on qubits Q1, Q4, and Q7 simultaneously. After completion, the task will be run on Q2, Q5, and Q8, again at the same time. Finally, it will run simultaneously on Q3 and Q3.