targeted_tensordot¶
-
pyquil.numpy_simulator.
targeted_tensordot
(gate, wf, wf_target_inds)[source]¶ Left-multiplies the given axes of the wf tensor by the given gate matrix.
Compare with
targeted_einsum()
. The semantics of these two functions should be identical, except this usesnp.tensordot
instead ofnp.einsum
.