all_zeros_statetensor

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

Returns a statetensor 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 statetensor returned.

Returns:

Statetensor representing the state having all qubits set to zero.

Return type:

Array