-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Scoping for control keys #4736
Merged
Merged
Scoping for control keys #4736
Changes from 105 commits
Commits
Show all changes
106 commits
Select commit
Hold shift + click to select a range
b65b009
Remove decomposition in measurement_key_protocol
daxfohl 56ab6c1
Merge branch 'master' into nodecompose
daxfohl 60214b6
deprecation
daxfohl 3b6480c
Fix deprecation description
daxfohl 3943cb1
Simplify, removing unused method.
daxfohl 2589da3
mypy
daxfohl 49d75a0
Add control key protocol
daxfohl 801e5bb
repr spec
daxfohl 9f92126
Prevent infinite recursion
daxfohl 4dfd6ba
infinite recur
daxfohl b611e74
Prevent infinite recursion, fix decompose check
daxfohl dc2e399
Prevent infinite recursion in test
daxfohl db21447
Fix tests
daxfohl 4f073dd
Fix tests
daxfohl f2366a2
fix caching
daxfohl 2116ce5
Doubled box lines charsets
daxfohl 2c4e09d
Doubled box lines charsets
daxfohl 2cb5b0d
readd missing tuple names
daxfohl db74173
fix deprecated protocol
daxfohl 896f417
fix unit tests
daxfohl e106375
fix unit tests
daxfohl 22c2914
test
daxfohl ad446ae
Simplify CircuitOperation.mapped_circuit implementation
daxfohl d9bd703
Ensure subcircuit.mapped_circuit applies parent path if no repetitions
daxfohl f802453
format
daxfohl 08b93b5
undo one change
daxfohl 62024f6
Use prefix everywhere
daxfohl 63903bb
coverage
daxfohl 6c4f13f
format
daxfohl 3170f03
introduce scoping params
daxfohl d4c133e
thread scoping params through subcircuits
daxfohl bcb569a
Put conflict check into MeasurementKey
daxfohl caffff6
Put conflict check into MeasurementKey
daxfohl 97bf4dd
Put conflict check into MeasurementKey
daxfohl d9a9da4
Merge branch 'master' into doublelines2
daxfohl 08f6667
Only add @ symbol if qubit map is there.
daxfohl 4fd1208
Fix merge error
daxfohl 236d719
mypy
daxfohl 9c3f1f1
code review comments
daxfohl 47beb37
Only add symbols for control keys we're drawing
daxfohl 0659c48
mypy
daxfohl ab1e1b6
mypy
daxfohl 956324d
Remove control_keys protocol implementation from circuit; it was left…
daxfohl e7c9510
Only draw cbits that are controls
daxfohl 2f6e66a
Rename control_keys to cbits
daxfohl dd8fdb8
foprmat
daxfohl b2b5370
Test ControlOp
daxfohl db169b3
format
daxfohl f44cc10
More tests
daxfohl 58b3bca
Coverage
daxfohl 8fa7ea2
more tests
daxfohl a1eced2
more test
daxfohl 06883d5
conditional operation
daxfohl 05eae73
teleportation
daxfohl d09250f
teleportation
daxfohl 5bdad13
QASM support
daxfohl 37adbd0
test all simulators
daxfohl 0dc073b
format
daxfohl e7b1d0c
Remove mps from examples
daxfohl 55c61a7
Merge branch 'cbit' into scope2
daxfohl 427208e
scope for conditionals
daxfohl 516d54d
tests
daxfohl 155cdff
remove extra extern_keys param
daxfohl 8d76826
include lower control keys
daxfohl 7e454fa
Merge branch 'cbit' into scope2
daxfohl 0388108
format
daxfohl 2778248
repr
daxfohl 02ad5e8
Merge branch 'cbit' into scope2
daxfohl b566cdb
format
daxfohl c321061
add protocol and test for circuits
daxfohl 9c08890
fix deep mapped circuit
daxfohl da8b2e6
Infinite recursion
daxfohl 95c152b
get control keys from circuit
daxfohl 6b37abf
Merge branch 'master' into cbit
daxfohl d8b2d89
bugs
daxfohl fba189c
cover
daxfohl 6709627
Merge branch 'cbit' into scope3
daxfohl 7c532b8
tests
daxfohl 4c37c8f
rename
daxfohl 1b410ff
rename pre merge
daxfohl eb5c4a2
Merge branch 'master' into scope5
daxfohl 4d55ead
format/mypy
daxfohl 25e8bdf
reorder imports, remove `conditions`
daxfohl d768ee4
fix diagrams
daxfohl 6b767fa
lint
daxfohl fd3660e
code nits
daxfohl d374d64
Add decomposition tests
daxfohl 1b97327
Add some tests.
daxfohl 946f14a
with_rescoped_keys
daxfohl 3ccc79c
varargs
daxfohl 31c3d1a
pydoc, format
daxfohl 52c0faa
format
daxfohl 57922f7
format
daxfohl dad481f
format
daxfohl f8ee6d1
format
daxfohl 03f72a8
format
daxfohl 8c9794a
coverage
daxfohl e7eb47a
Merge branch 'master' into scope5
daxfohl 834a5eb
interface
daxfohl e6f7d26
simplify
daxfohl 600dc44
Merge branch 'scope5' of https://github.com/daxfohl/Cirq into scope5
daxfohl f520402
format
daxfohl b3df03b
fix path
daxfohl 544e0d5
make sure to add path to existing keys
daxfohl f2f1a34
improve docstring on extern_keys.
daxfohl 001e989
Merge branch 'master' into scope5
CirqBot 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
This file contains 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 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 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 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 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 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.
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.
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.
To confirm: a circuit which contains control and measurement of key "A" excludes "A" from what it returns here because "A" is internal, correct? (i.e. it's measured and used entirely within the circuit)
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.
Yes, the protocol returns all keys that must be defined externally before this element can be used.