Circuit Generation

The True-Qᵀᴹ SDK provides several methods of benchmarking circuit generation.

Here is a simple example:

import trueq as tq
circuits = tq.make_srb(labels=[[0, 1]],
                       n_random_cycles=[4, 32],
                       n_circuits=25)

In this example circuits is a 2-qubit CircuitCollection, a collection of circuits to be run. The CircuitCollection object is essentially just an iterable object of Circuit objects, each of which describes a single circuit to be run on a quantum device. A circuit in turn stores the quantum gates to be performed in each cycle of the circuit, and also stores the experimental or simulated results once it has been run.

Examples and details will be provided in subsequent guides, such as that of streamlined RB, but in short, there are three steps for every protocol:

  1. Generate a circuit collection using a generation function.

  2. Iterate through the circuit objects and perform them experimentally, recording their results.

  3. Analyze the data.

Other Methods

There are equivalent calls within the protocols module for other benchmarking protocols.

Type

Method

RB

trueq.make_srb()

XRB

trueq.make_xrb()

CB

trueq.make_cb()

IRB

trueq.make_irb()