# Questions tagged [quantum-computing]

Questions about simulation of quantum circuits and quantum algorithms in Mathematica.

27 questions
Filter by
Sorted by
Tagged with
83 views

1 vote
82 views

### Gaussian Matrix Model - Large N Expansion Physics with Mathematica

Update: Attempted 2nd time by replica method I'm trying to implement basic large N expansion in Mathematica. I'm trying to understand what this means on the fly as well. The model I am trying to ...
1 vote
94 views

### How to implement an entangled measurement in mathematica?

Suppose, we have two states $|\phi^+\rangle_{AB},|\phi^+\rangle_{CD}$. Now a Bell basis measurement is performed on the qubits BC. How to code in Mathematica to find out the post-measurement state on ...
214 views

### How to generate all permutation matrices for 4 qubits?

In quantum mechanics, a qubit can be understood as a 2 by 1 vector denoted by Dirac notation as |0\rangle \equiv \left( \begin{array}{c} 1\\ 0\\ \end{array} \right) ,|1\rangle \equiv \left( \...
1 vote
128 views

### Wolfram Quantum Framework Shows Mixed States as Kets

Wolfram Quantum Framework consistently shows the state["Formula"] for mixed states, defined via some density matrix, in terms of simply kets! Is it ...
136 views

### Minimizing computational time for a quantum walk problem

Any suggestions as to how to speed up the computational time for this quantum walk problem which is coded using a normalized SparseArray coin operator as follows: ...
139 views

### Schmidt Measure of a Graph State

Based on the definition of the Schmidt measure in this work https://www.arxiv-vanity.com/papers/quant-ph/0307130/, the following code was set up, but appears to generate errors. Is there a better way ...
1 vote
73 views

### Defining and executing large matrix operators on vectors efficiently

For an $N$-qubit system, I am interested in coding, in an efficient way, the following set of Kraus operators $\{A_c\}_c$ defined in the computational basis as \begin{align} \hat{A}_c := \sum_{m=...
31 views

### Resetting rules for non comutative multiply

Im currently working on a project that intends to achieve multiple task the first if which rewrite a bra-ket notated triplet tensor product state such as the w state in terms of the pauli matrices. i,...
73 views

### Confusion in Eigenvalue and eigenfunction distribution using NDEigensystem [duplicate]

I have been using NDEigensystem to solve the Schrodinger equation for different potentials. However, whenever the potential has its minimum in the negative y-axis, ...
35 views

### Simulation of Quantum pseudo-telepathy

I would like to mathematically simulate Quantum pseudo-telepathy on The magic square game from Wikipedia. In section Pseudo-telepathic strategies we can read: The trick is for Alice and Bob to share ...
271 views

### Decomposing Hamiltonian in terms of Pauli strings

Does anyone know of a native Mathematica function or a package that allows one to decompose an arbitrary Hamiltonian into Pauli strings? There are a few packages for Python that do this (e.g., one ...
156 views

### How to find complete QuantumOperator() Matrix

I am defining a quantum operator as X1 = QuantumOperator["PauliX", {3}] This operator is expected to act on qubit 3 and so supposed to be 8x8 matrix. But ...
1 vote
215 views

### How to define momentum operator for use with creation and annihilation operators in quantum mechanics

I am having trouble writing the momentum operator in the differential form to complete a piece of code shown here so that I can show a commutator [P,Q] = I . Here is what I have done so far, and I ...
58 views

### QuantumFramework: Error message when calculating a CircuitOperator

I am running the following package and code: ...
105 views

### Constructing NxN tridiagonal block diagonal matrix with N is a variable [closed]

Hi please can someone help me writing a program of generating a tridiagonal block matrix with dimension of NxN where N is a variable can be 50, 100, 200, 300...etc , Well I don't know how I'm a ...
147 views

### Calculating power series of quantum operators on kets

I am using the "Quantum" add-on package to perform some quantum mechanical calculations using SU(1,1) generators. The code that I've developed reads ...
42 views

### How to export integration values to a data file? [closed]

I'm calculating quantum mechanical expectation value for a very high order truncation value. But due to low ram, it gets hung each time. So I am trying to write those data to a .dat file into the HDD ...
168 views

### Defining a non-commutative algebra

I'm new to Mathematica, and I'm trying to learn the ropes. I'm trying to write a little boson algebra engine, with basic useful functions such as non-commutative algebra, normal-ordering and vacuum ...
932 views

### Where is the QuantumComputing package?

Where is the QuantumComputing package? https://m.youtube.com/watch?v=wHnfWuS0C08