Hi there!
I am starting to get familiar with the library starting from photonic states generation.
Let’s imagine that I want to generate the state |{P:H}{P:V},0>
. Looking at the documentation (Home/States/Annotated Basic State/Use of Annotation in AnnotatedBasicState), the following line should do it:
pcvl.AnnotatedBasicState( [ ({"P" : "H"} {"P" : "V"}), 0] )
it returns a SyntaxError: invalid syntax
, though.
I know I could easily skip the problem just by using
pcvl.AnnotatedBasicState( "|{P:H}{P:V},0>" ) # str input
or
pcvl.AnnotatedBasicState([2, 0], {1:{"P" : "H"}, 2:{"P" : "V"} } ) # list input, annotating separately each photon
but, if my guess is correct, the documentation should be updated right?
Btw, awesome job guys!