Skip to content
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

Do not frighten future COMPRESS-INSTRUCTIONS spelunkers #846

Merged
merged 1 commit into from
Sep 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/compressor/compressor.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,14 @@ Its role is to find SHORT SEQUENCES (so that producing their matrix form is not
;; involve fewer qubits
(t
(multiple-value-bind (r-output r-queues)
;; After running compression at QUEUE-TOLERANCE-THRESHOLD, it's desirable to
;; shrink the queue width down to 2 immediately because no new
;; compilers/reducers will be introduced until the queue width is shrunk
;; down to a hardware object. While it is theoretically possible for a
;; general compiler to apply at queue width 3 but not at queue width 4,
;; (because a slightly different set of instructions will be selected for
;; compilation), it's highly unlikely and generally not worth the large
;; performance impact
(compress-instructions once-compressed-instructions chip-specification
:protoquil protoquil
:queue-tolerance-threshold (min 2 (1- (compression-queue-num-qubits queue)))
Expand Down