Quantum gates X62262


Statement
 

pdf   zip

html
Public test cases
  • Input

    0.707
    0
    0.707
    0
    HX
    

    Output

    (0.000+0.000i)|0> + (1.000+0.000i)|1>
    
  • Input

    1
    0
    0
    0
    X
    

    Output

    (0.000+0.000i)|0> + (1.000+0.000i)|1>
    
  • Input

    1.006
    0
    0
    0.111
    ZH
    

    Output

    (0.711-0.078i)|0> + (0.711+0.078i)|1>
    
  • Information
    Author
    HP Codewars BCN
    Language
    English
    Official solutions
    Python
    User solutions
    C++ Python