qutip / qutip-jax

JAX backend for QuTiP
BSD 3-Clause "New" or "Revised" License
18 stars 7 forks source link

`sigmaz()` is a constant #38

Closed Ericgig closed 3 months ago

Ericgig commented 6 months ago

Sigma matrices are defined as constant and are not affected by dtype and default_dtype.

>>> with qt.CoreOptions(default_dtype="jax"):
>>>     sz = qt.sigmaz()
>>> print(sz.dtype)
<class 'qutip.core.data.csr.CSR'>