Korean
언어
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.quantum_info.random_state

random_state(dim, seed=None)[소스]

DEPRECATED Return a random quantum state.

매개변수
  • dim (int) – the dim of the state space

  • seed (int or np.random.Generator) – Optional. Set a fixed seed or generator for RNG.

반환값

state(2**num) a random quantum state.

반환 형식

ndarray