-
Notifications
You must be signed in to change notification settings - Fork 136
Circuit Editor #2238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Circuit Editor #2238
Changes from 182 commits
Commits
Show all changes
185 commits
Select commit
Hold shift + click to select a range
e80aec1
(circuits) add circuit_vis directory
minestarks 2c4d61f
(circuits) prettier circuit_vis
minestarks 883045a
(circuits) incorporate circuit_vis into build
minestarks 0f84291
remove some unnecessary files
minestarks 8a3618b
upgrade canvas dep, delete some test code
minestarks 0da1f42
remove canvas dependency
minestarks b51f078
remove more unwanted dependencies, kill tests
minestarks 3b515d2
Merge branch 'main' of https://github.com/microsoft/qsharp into mines…
minestarks ad5030f
remove unwanted files
minestarks fffdd8e
move into qsharp package
minestarks 4de9fb5
revert build.py
minestarks 472432b
remove the last of unnecessary changes
minestarks 3ab1ff3
i lied, one more
minestarks ac831ec
more
minestarks 0f31206
update package-lock
minestarks bff3dae
display circuit visual for .circ files
ScottCarda-MS 8bf2124
mock of Q# backend for circ files and integration into Q# projects
ScottCarda-MS 9b7e597
very basic Q# code-gen
ScottCarda-MS 13a7d93
quick changing between qviz and custom editor
ScottCarda-MS 8e780a0
add the custom editor
ScottCarda-MS f468a84
merge in from other branch
ScottCarda-MS 5d503e3
Add Control context menu
ScottCarda-MS 916eb3b
Remove Control context menu option
ScottCarda-MS d0a2a80
Add support for gate argument
ScottCarda-MS cef4d76
Adjoint option and some exceptions for context menu options
ScottCarda-MS b0f1b6b
Stop constantly trying to read from file
ScottCarda-MS 6d59ac4
Minimize circuits before writing them to file.
ScottCarda-MS c05f787
updated qsharp generation. Still need to generate Result[] return values
ScottCarda-MS 36a508d
add support for capturing and returning measurement results
ScottCarda-MS 7ff263f
Improved the Toolbox panel UI
ScottCarda-MS b8ca50b
fixed document events attaching multiple times
ScottCarda-MS c7c62a7
fixed multiple events attaching to toolbox elements
ScottCarda-MS 6f5fc63
I think I finally fixed the dropzone wires being too persistent
ScottCarda-MS 5a9b896
fixed bug where multiple style nodes would get attached
ScottCarda-MS 7f90a9f
fix bug where generated operation name used the whole path instead of…
ScottCarda-MS e7a20cc
fixed metadata processing bug
ScottCarda-MS 4a8e93b
.
ScottCarda-MS ea1b393
Merge branch 'main' into sccarda/MergeMine
ScottCarda-MS ab08c78
WIP reorganizing and splitting into separate files.
ScottCarda-MS 1eb4f47
reorg
ScottCarda-MS 1a7fb75
little bit of cleanup
ScottCarda-MS b24bb4a
qviz extensions
ScottCarda-MS 360c5ee
Change to column-based format. Working on displaying based on column …
ScottCarda-MS f9c63d8
WIP
ScottCarda-MS f395eeb
try it out with the sample .qviz
ScottCarda-MS 26b6bca
updated Q# generation
ScottCarda-MS ad72f9a
Update circuit gen from qs logic to bestow column information on gates.
ScottCarda-MS 1c6e0a4
remove commented out code
ScottCarda-MS e7a72b7
fix issues
ScottCarda-MS 81b2840
Merge branch 'sccarda/MergeMine' into sccarda/formatChange
ScottCarda-MS 8e815af
updated dropzones
ScottCarda-MS 32babdd
added version to circuit format
ScottCarda-MS 2161b74
move dropzones around
ScottCarda-MS 5a4b6c0
remove dropzone borders
ScottCarda-MS 186b43a
delete op if dragged out of circuit, and control too
ScottCarda-MS 917bd02
fixed some issues with delete by dragging
ScottCarda-MS 3d6aa9c
properly move measure gates
ScottCarda-MS 1fff9a6
fix bug with zoom
ScottCarda-MS 2580b25
Fix bug with rendering ghost control dot
ScottCarda-MS 7b5f16e
disable zoom for editor
ScottCarda-MS c1f196d
update draggable logic
ScottCarda-MS be17942
WIP: qViz format change (#2188)
ScottCarda-MS 8359a2f
clean up
ScottCarda-MS faf4f90
remove dev file
ScottCarda-MS 36dba9b
Merge branch 'main' into sccarda/MergeMine
ScottCarda-MS e88caa4
provide default version for rust code
ScottCarda-MS fc7471f
fix edit argument input
ScottCarda-MS e9cb55d
Allow for empty circuits to be rendered in edit mode.
ScottCarda-MS 83ab637
If there is no circuit in the qviz file, write an empty circuit to th…
ScottCarda-MS c66f625
quibt's num_children should be optional
ScottCarda-MS b39d728
Include ket gates in toolbox
ScottCarda-MS 1291c24
Sample using circuit file
ScottCarda-MS 8d21ac4
don't zoom on open for editor
ScottCarda-MS 41c68fd
Merge branch 'main' into sccarda/MergeMine
ScottCarda-MS f34ca88
WIP new circuit format
ScottCarda-MS 133fcb5
updates to the CircuitIntegration sample
ScottCarda-MS 4009f7f
ResetX -> ResetOne in gate dictionary
ScottCarda-MS b6e48df
qviz -> qsc and give .qsc files icon
ScottCarda-MS b75abc9
moved sample out of algorithms
ScottCarda-MS fdca7d8
CircuitGroup
ScottCarda-MS 859943d
circuitgroup drop name and version becomes number
ScottCarda-MS 7477488
Component Grid
ScottCarda-MS ae2ecec
updates to Qubit and Register
ScottCarda-MS deb9acf
multiple args and drop isControlled
ScottCarda-MS 65eb873
fixed nested if
ScottCarda-MS f83a325
clearifying comment
ScottCarda-MS 2996374
separate measurements away from operations
ScottCarda-MS 6d16628
Revert "separate measurements away from operations"
ScottCarda-MS 0ffa43a
Operations break down into Unitary and Measurement
ScottCarda-MS 9c2bece
camelcase for Operation kinds
ScottCarda-MS 7222abf
Sccarda/separate measurements (#2218)
ScottCarda-MS b162299
Merge branch 'sccarda/MergeMine' into sccarda/updateCircuitFormat
ScottCarda-MS d14c099
update sample to new format
ScottCarda-MS 2be0a45
WIP started to update the rust code with the new format
ScottCarda-MS 65b79f9
WIP updating the Q# gen code for circuits to use the updated schema
ScottCarda-MS 08dd923
handle circuit groups an auto-detect adj and ctl for generated ops
ScottCarda-MS a1e25a1
finished fixing tests
ScottCarda-MS 2cb3d8d
updated qsharp generation tests
ScottCarda-MS 250c8d6
fixed bug where context menu didn't respect window scroll
ScottCarda-MS 4cca6ec
WIP drag-n-drop bug fix
ScottCarda-MS 4e66087
Prevent move from ignoring controls and their control lines
ScottCarda-MS 88417c0
Fixed some of the moving logic for controls
ScottCarda-MS f081c6c
prevent operations from moving onto existing controls/targets
ScottCarda-MS dfda099
Merge branch 'sccarda/MergeMine' into sccarda/updateCircuitFormat
ScottCarda-MS 4934efb
Hopefully actually fixed measurement movement issues.
ScottCarda-MS 578d4ad
Change Q# gen to gen ops with Qubit registers than individual qubit p…
ScottCarda-MS 53ad470
Only rotation gates can have args (or any operation that requires par…
ScottCarda-MS 6dba6e7
automatically prompt users for required arguments
ScottCarda-MS 03e1b43
fix bug in sample
ScottCarda-MS 11f23b5
generated Q# can accommodate pi character.
ScottCarda-MS ee080d0
pi button to argument prompt and placeholder validation
ScottCarda-MS 819349b
Displayed args are clickable to prompt user for edit
ScottCarda-MS f5ae567
update the css styles to respect vscode themes
ScottCarda-MS ce21e5b
placeholder text for the argument input
ScottCarda-MS 6899965
Make Ket gates match appearance to measurement gates
ScottCarda-MS 26c9fef
move an operation if trying to add a control on top of existing opera…
ScottCarda-MS 731044a
add a confirmation dialog if the user is about to remove a qubit with…
ScottCarda-MS 0e81837
validate input arguments to be arithmetic expressions (no parens supp…
ScottCarda-MS 8285902
validation logic with parentheses
ScottCarda-MS f027f12
Language server is activated on changes to the circuit file.
ScottCarda-MS 85fc02f
fixed some css issues with dark high contrast theme
ScottCarda-MS 5c2a7f7
Undo Redo logic enabled by back-and-forth communication between webvi…
ScottCarda-MS 5f07beb
use the document version to prevent unnecessary doc update
ScottCarda-MS 256bda2
fix a couple of style issues
ScottCarda-MS c172b83
Merge branch 'main' into sccarda/circuitEditor
ScottCarda-MS 0115fa5
Export CircuitGroup and use it as the base data structure for vscode
ScottCarda-MS 1f6833a
Allow the Circuit widget to accept Circuit json instead of CircuitGro…
ScottCarda-MS b7981a2
Back compat conversion for legacy schema in the widget.
ScottCarda-MS 14cf473
fix test
ScottCarda-MS 899afa1
small changes
ScottCarda-MS c98cdd6
missed one
ScottCarda-MS 492082c
small updates and remove spacing at top of editor
ScottCarda-MS ff3ab62
Allow for auto-scrolling while dragging gates.
ScottCarda-MS d578956
Populate qsharp.json command now supports getting qsc files.
ScottCarda-MS aa67130
PR feedback
ScottCarda-MS e29dfab
resolved some of the cargo warnings
ScottCarda-MS 97f56a9
split up large functions in rust
ScottCarda-MS 43913f3
make "ket" gates their own category separate from unitary gates
ScottCarda-MS 4b73198
disable updating the GUI from the text doc dynamically
ScottCarda-MS bb026e7
Move toolbox to the left of screen, and have the circuits scroll inde…
ScottCarda-MS c96320e
update short-circuit logic for writing to text document
ScottCarda-MS 869e8b4
fixed bug where confirm dialog was not getting focus
ScottCarda-MS c3ef5fe
Added the SX gate
ScottCarda-MS 85be205
Merge branch 'main' into sccarda/circuitEditor
ScottCarda-MS 2bc6cfb
use 𝜓 instead of ket-zero for input labels
ScottCarda-MS c00cdd8
change decomp of SX to HSH
ScottCarda-MS b0b649d
fixed ket representaion in ascii circuits
ScottCarda-MS cf62b21
changed language id to qsharpcircuit
ScottCarda-MS 7ad3892
dealt with ToDo's
ScottCarda-MS 52bd5d0
Removed "Circuit" from the title
ScottCarda-MS 56305bf
minor change
ScottCarda-MS 4343c1c
camel_case
ScottCarda-MS 320d16c
simplified some of the circuit builder functions
ScottCarda-MS 8a8dfbe
updated places that referred to both .qs and .qsc files
ScottCarda-MS d18d0a7
Make version on circuit group mandatory
ScottCarda-MS e8148aa
removed redundancy
ScottCarda-MS 56c3d48
fixed test with missing version
ScottCarda-MS 1c4e45e
undo de-duplication of stylesheet function
ScottCarda-MS f34fc0a
Move the wrapping of circuit into circuit group out of wasm into npm
ScottCarda-MS bb8b4cf
isQsharpDocuement returns true for circuit files
ScottCarda-MS bbd08c7
some minor changes
ScottCarda-MS 62aa8cd
Changed Rest to Ket for Metadata Gate Type
ScottCarda-MS 662f329
telemetry for circuit files
ScottCarda-MS 0d58818
Merge branch 'main' into sccarda/circuitEditor
ScottCarda-MS b0fd785
fix bad auto-merge
ScottCarda-MS 32c1cb4
remove injected style node
ScottCarda-MS 8e8c098
generalized setThemeStylesheet
ScottCarda-MS 22a1201
unit tests for projects with circuits in them
ScottCarda-MS 42ddd7d
Removed the extensions mechanism for extending Sqore.
ScottCarda-MS dd015f5
ghost opacity reduced
ScottCarda-MS e20d9ed
fix line endings on test case
ScottCarda-MS 7aa7a3c
added json to circuits logic in the rust layer
ScottCarda-MS 844f5d1
improvements to file sync
ScottCarda-MS c30cd6f
prevent leading radix in arg input
ScottCarda-MS d6a9146
added some width to the end of circuits for gates to be dragged onto
ScottCarda-MS 9edca60
allow "pi" to be entered for arugment input
ScottCarda-MS 0293bc8
do not focus the cancel button in confirm dialog
ScottCarda-MS ad88e38
ctrl-draving a control will move the operation and add a control to it
ScottCarda-MS 7901569
Move the legacy circuit update logic to its own file outside of the u…
ScottCarda-MS 8963035
remove debug logging from circuit editor
ScottCarda-MS d851081
Handle error message in vscode better
ScottCarda-MS 408822d
changed where conversion to Q# from circuits is called to avoid expos…
ScottCarda-MS ba2b17a
change utils.ts to theme.ts
ScottCarda-MS 805a632
remove "exclude_regexes"
ScottCarda-MS bcedd4c
rename handle to generate call methods
ScottCarda-MS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.