CreatePossibleState#
- diffqc.util.CreatePossibleState(op, nqubits: int, dtype: dtype) Array #
Create all possible state
- Parameters
op –
dense
orsparse
modulenqubits (int) – Number of qubits
dtype (jnp.dtype) – dtype
- Returns
[|00...0>, |00...1>, ..., |11...1>]
- Return type
jnp.ndarray