-
Notifications
You must be signed in to change notification settings - Fork 56
Integrate ExecutionPathTracer in IQ# #231
Conversation
* Add ExecutionPathTracer to repo * Add WithExecutionPathTracer extension method to SimulatorBase * Respond to PR feedback * Use GetRuntimeMetadata * Remove ApplyToEach * Add tests * Use Newtonsoft instead of System.Text.Json * Rename ArgStr to DisplayArgs * Clean up code * Fix typo in tsconfig * Fix tests
* Add view magic command * Rename ExecutionPathEncoder to DisplayableHtmlEncoder * Add documentation to view command * Rename %view to %trace * Fix JSON parsing * Add TraceMagic test * Add flag for depth * Fix nested test * Empty commit to trigger CI * Empty commit to trigger CI
* Change depth flag to --depth * Add parentheses around DisplayArgs if it doesn't have it * Trigger CI rebuild
* Add tests for operations with operations as arguments * Build 0.12.2007.2301. Co-authored-by: Project Collection Build Service (ms-quantum) <>
* Implement isMeasurement flag for execution path operations * Rename 'controlled' and 'adjoint' to 'isControlled' and 'isAdjoint'
* Allow default depth for %trace to be set in %config * Fix config magic description
add8675
to
64fdbd2
Compare
I'm making this PR open for review because #219 is blocked on me figuring out how to write tests involving |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Didn't look at this in much detail, since I know this has been reviewed in separate PRs that were merged into the feature branch.
One thing that just occurred to me: If you want syntax highlighting for iqsharp/src/Kernel/client/kernel.ts Line 69 in b69beea
(I also notice that the new-ish command |
@rmshaffer opened a PR for that at #240 :) |
* Add composite operation handling * Add ForEach tests * Add Canon.qs to Tests.IQSharp.csproj * Build 0.12.2007.2412. * Fix ResetAll tests * Fix tests to allow using Microsoft.Quantum.Canon * Add newline * Build 0.12.2007.3008. * Reformat ExecutionPathTracer stylistically * Fix iqsharp.sln * Empty commit to retrigger CI * Remove dotnet test args * Fix broken build * Fix TraceMagic test * Fix broken build tests Co-authored-by: Project Collection Build Service (ms-quantum) <>
* Add syntax highlighting for %trace command * Fix ordering and add lsopen
This PR addresses #158 and merges the
feature/path_visualizer
branch intomaster
. This PR contains the following implementations:ExecutionPathVisualizer
JS/TS code + Jest testsExecutionPathTracer
C# code that hooks on to a simulator and traces out incoming operations and theirRuntimeMetadata
to generate the correspondingExecutionPath
JSON string%trace
magic command to trigger this visualization process--depth
flag for%trace
command that allows users to select the render depth of operations1
) in%config
DisplayableHtmlElement
andDisplayableHtmlElementEncoder
to render HTML elements to Jupyter cellsNote: Waiting on #219 to get merged in to this branch as well, but facing issues with writing tests that involve
Microsoft.Quantum.Canon
.