Fock backend now supports batched initial states as input.
As encoding QumodeCircuit parameters with batched data, inputing batched initial states will receive a batched output.
For example, forward function will return a batched unitary matrices(is_prob=None), or a dictionary of output states with batched key values(is_prob=True/False).
Notice
When both initial state and circuit parameters have batch input, the calculation would be one-to-one corresponding. Make sure they have the same batch size:)
Fock backend now supports batched initial states as input.
As encoding
QumodeCircuit
parameters with batched data, inputing batched initial states will receive a batched output.For example,
forward
function will return a batched unitary matrices(is_prob=None
), or a dictionary of output states with batched key values(is_prob=True/False
).Notice
When both initial state and circuit parameters have batch input, the calculation would be one-to-one corresponding. Make sure they have the same batch size:)
Fix
Fix #29