You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched exisisting GitHub issues to make sure the feature request does not already exist.
Feature details
I would like initialize a state using the syntax mm.State.from_fock(modes=[0], array=numpy_array) where numpy_array is a 1-dimensional numpy array. This should return a pure state with the values in numpy_array as Fock-basis coefficients.
Right now, an error is thrown if I try this. Also, the example code in the doc string throws an error, "'Coherent' object has no attribute 'ansatz'" array = Coherent(modes, x=0.1).to_fock().ansatz.array
I believe that this can also be done
Implementation
No response
How important would you say this feature is?
1: Not important. Would be nice to have.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Before posting a feature request
Feature details
I would like initialize a state using the syntax
mm.State.from_fock(modes=[0], array=numpy_array)
wherenumpy_array
is a 1-dimensional numpy array. This should return a pure state with the values innumpy_array
as Fock-basis coefficients.Right now, an error is thrown if I try this. Also, the example code in the doc string throws an error, "'Coherent' object has no attribute 'ansatz'"
array = Coherent(modes, x=0.1).to_fock().ansatz.array
I believe that this can also be done
Implementation
No response
How important would you say this feature is?
1: Not important. Would be nice to have.
Additional information
No response
The text was updated successfully, but these errors were encountered: