CreatePossibleState#

diffqc.util.CreatePossibleState(op, nqubits: int, dtype: dtype) Array#

Create all possible state

Parameters
  • opdense or sparse module

  • nqubits (int) – Number of qubits

  • dtype (jnp.dtype) – dtype

Returns

[|00...0>, |00...1>, ..., |11...1>]

Return type

jnp.ndarray