all_zeros_densitytensor

qujax.all_zeros_densitytensor(n_qubits, dtype=<class 'complex'>)

Returns a densitytensor representation of the all-zeros state |00…0> on n_qubits qubits

Parameters:
  • n_qubits (int) – Number of qubits that the state is defined on.

  • dtype (str | type[Any] | dtype | SupportsDType) – Data type of the densitytensor returned.

Returns:

Densitytensor representing the state having all qubits set to zero.

Return type:

Array