The function mps_gate_with_mpo_lazy calls tensor_network_apply_op_vec with parameters tn_op=mpo, tn_vec=mps, which results in an error. Correct way would be A=mpo, x=mps.
1485 def mps_gate_with_mpo_lazy(mps, mpo, inplace=False):
1486 """Apply an MPO to an MPS lazily, i.e. nothing is contracted, but the new
1487 TN object has the same outer indices as the original MPS.
1488 """
-> 1489 return tensor_network_apply_op_vec(
1490 tn_op=mpo, tn_vec=mps, contract=False, inplace=inplace
1491 )
TypeError: tensor_network_apply_op_vec() missing 2 required positional arguments: 'A' and 'x'
What happened?
The function
mps_gate_with_mpo_lazy
callstensor_network_apply_op_vec
with parameterstn_op=mpo, tn_vec=mps
, which results in an error. Correct way would beA=mpo, x=mps
.What did you expect to happen?
No response
Minimal Complete Verifiable Example
Relevant log output
Anything else we need to know?
No response
Environment
quimb 1.8.3