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
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 = ()