qrao.encoding.qrac_state_prep_1q¶
- qrac_state_prep_1q(*m)[source]¶
Prepare a single qubit QRAC state
This function accepts 1, 2, or 3 arguments, in which case it generates a 1-QRAC, 2-QRAC, or 3-QRAC, respectively.
- Parameters:
m (
int
) – The data to be encoded. Each argument must be 0 or 1.- Return type:
CircuitStateFn
- Returns:
The circuit state function.