PauliY gate - composition of PauliZ and Not gates. It swaps the amplitudes and change the sign of the second one (beta).
q = Qubit.new q.reset g = Gates::PauliY.new q.to_vector # -> Vector[Complex(1, 0), Complex(0, 0)] g.compute q.to_vector # -> Vector[Complex(0, 0), Complex(-1, 0)]
Takes vector with two complex numbers (amplitudes), perform PauliY operation and returns new vector.
[Validate]