Module quantum_states

Module quantum_states 

Source
Expand description

Helper functions for creating common quantum states

Functions§

minus_state_component
Create a complex number representing the |-⟩ state amplitude component
one_state
Create a complex number representing the |1⟩ state amplitude
phase_factor
Create a phase factor e^(i*theta)
plus_state_component
Create a complex number representing the |+⟩ state amplitude component
zero_state
Create a complex number representing the |0⟩ state amplitude