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
## einsum_compiler.py | |
## | |
## What it is | |
## ---------- | |
## | |
## Numpy has a standard function, einsum, which can be used to evaluate large | |
## nested summations. Here we show how to translate a pyQuil program consisting | |
## of only gate applications to a single einsum call. | |
## | |
## |
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
(sb-c:defknown prefetch ((member :nta :t0 :t1 :t2) | |
sb-sys:system-area-pointer sb-vm:signed-word | |
(member 2 4 8 16) | |
fixnum) | |
(values &optional) | |
(sb-c:any sb-c:always-translatable) :overwrite-fndb-silently t) | |
(sb-c:define-vop (prefetch) | |
(:translate prefetch) | |
(:policy :fast-safe) |