QSharpApplication Class
Application that produces a resource estimation trace from Q# code.
Accepts a Q# entry expression string, a callable, or pre-computed
LogicalCounts.
Constructor
QSharpApplication(entry_expr: str | Callable | LogicalCounts, args: tuple = (), cache_dir: Path = WindowsPath('C:/Users/cloudtest/.cache/re3/qsharp'), use_cache: bool = False)
Parameters
| Name | Description |
|---|---|
|
entry_expr
Required
|
|
|
args
|
Default value: ()
|
|
cache_dir
|
Default value: C:\Users\cloudtest\.cache\re3\qsharp
|
|
use_cache
|
Default value: False
|
Methods
| get_trace |
Return the resource estimation trace for the Q# program. |
get_trace
Attributes
entry_expr
The Q# entry expression, a callable returning logical counts, or pre-computed logical counts.
entry_expr: str | Callable | LogicalCounts
args
The arguments to pass to the callable, if one is provided. Default is an empty tuple.
args: tuple = ()
cache_dir
Directory for caching compiled traces.
cache_dir: Path = WindowsPath('C:/Users/cloudtest/.cache/re3/qsharp')
use_cache
Whether to use the trace cache. Default is False.
use_cache: bool = False