
Newest 'qutip' Questions - Quantum Computing Stack Exchange
For questions about code which makes some use of QuTiP (Quantum Toolbox in Python). It is an open-source software library for simulating the dynamics of closed and open quantum systems.
programming - Defining dimension of an operator in qutip
2020年8月16日 · fooQ = qutip.tensor(qutip.basis(2, 0), qutip.basis(2, 1)) This is the tensor product of two qubit ket states, thus it's a vector in a space of dimension $2\times 2$. As a matrix, you can represent it as a $4\times 1$ matrix. But if you want to remember the tensor structure of this space, which makes it easier to do things such as partial ...
programming - How to simulate a beam splitter in QuTiP?
2024年9月19日 · Since I didn't find an operator for beam splitter in QuTiP, I tried to calculate it using this code: def ...
Measuring qubits in QuTiP - Quantum Computing Stack Exchange
QuTiP is not really meant for this I think. As said on the home page : QuTiP is open-source software for simulating the dynamics of open quantum systems. Simulating dynamics of open quantum systems by definition means you are interested in …
programming - Eigenstates differ between Qutip and Quspin
2023年7月12日 · Qutip shows each eigenstate such as Hi.eigenstates()[1][0] is the ground, Hi.eigenstates()[1][1] is the first excited state, etc.... Quspin shows them such as H.eigh()[1][0] are the values the first element of the basis takes for the different states, still with increasing energy, H.eigh()[1][1] is for the second element of the basis, etc...
Acting with a superoperator to states in qutip
2022年2月3日 · I can generate a random superoperator in qutip using the command rand_super(N) $\mathcal{E}$ where I only need to inser the dimension of the superoperator is acting on, denoted as N. The same superoperator should be able to act on a state, that is a density matrix, NxN $\rho$ .
Qutip: Mesolve gives different and weird results with different fock ...
2022年8月1日 · I have modified the qutip tutorial of Trilinear oscillators to the form above mentioned Hamiltonian. As I change the number of Fock states considered N1,N2,N3 from 2,3,4...8 the average number particle at each site would change.
programming - Writing the Jaynes-Cumming model in QuTip
2021年4月2日 · QuTiP is treating the qubit as a two-level oscillator ($|0\rangle$ is ground), and you are using $|0 ...
qutip - Calculate average fidelity of QobjEvo - Quantum …
2023年8月9日 · I am using QuTip to simulate a quantum gate, and I want to calculate the average fidelity of the gate. I have the Hamiltonian, the interaction time, and Liouvillian modeling the decoherence. Is there any easy way that I can get average fidelity from above objects? If there is not, then how to do it? Thank you!
programming - QuTiP ptrace function results do not recreate …
2024年3月20日 · I have a qutip density matrix fullsystem for a system composed of two quantum systems with dims = [[n, n], [n, n]], shape = (n**2, n**2). It's my understanding that if I wanted the density matrix of each system separately, I could do