to_state#

diffqc.dense.to_state(x: Array) Array#

Convert qubits internal representation to state vector

Parameters

x (jnp.ndarray) – qubits state

Returns

State vector, e.g. [|000>, |001>, |010>, ..., |111>]

Return type

jnp.ndarray