I try to simulate some circuits with partial distinguishability between the photons.
I use the function “separate_state” in the class “class AnnotatedBasicState” but I would ask if it is possible to make a change.
Up to now the function return a list containing the state divided by indistinguishability but no information on the annotation for each stat is provided. I would like to ask if it is possible that the function return also a list of annotations one for each state or better if there is an optional variable that tells if the annotations are returned or not.
1 Like
Hello, it is a good point - we are putting the point in the wish list for the next release and we will keep you posted !
Jean
(and sorry for the late response )
Hello,
The requested change will be released soon in Perceval 0.9.0.
Just so you know : AnnotatedBasicState
was deprecated and BasicState
can hold annotations.
When calling my_basic_state.separate_state
, you can pass a boolean parameter keep_annotations
. When set to True
, annotations will remain in the separated states of the output list.
Best wishes,
Eric