OpenQASMApplication Class

Application that produces a resource estimation trace from OpenQASM code.

Accepts an OpenQASM program string or a callable.

Constructor

OpenQASMApplication(program: str | Callable | LogicalCounts, args: tuple = ())

Parameters

Name Description
program
Required
args
Default value: ()

Methods

get_trace

Return the resource estimation trace for the OpenQASM program.

get_trace

Return the resource estimation trace for the OpenQASM program.

get_trace(parameters: None = None) -> Trace

Parameters

Name Description
parameters

Unused. Defaults to None.

Default value: None

Returns

Type Description

The resource estimation trace.

Attributes

program

The OpenQASM program as string or callable.

program: str | Callable | LogicalCounts

args

The arguments to pass to the callable, if one is provided. Default is an empty tuple.

args: tuple = ()