CliffordUtils.h_gates¶
- CliffordUtils.h_gates(gatelist, q, h)[source]¶
Append a hadamard gate on qubit q to a given list of gates.
- Parameters
gatelist (list) – a list of gates.
q (int) – an index of the qubit.
h (int) –
an integer indicating whether or not to apply a hadamard gate:
1 - for H gate.
0 - no H gate.
- Returns
A list of gates, after appending a hadamard gate on qubit q.
- Return type
list