Skip to main content

Questions tagged [algorithms]

For questions about an algorithm as it relates to physics. DO NOT ask how to implement an algorithm, questions like that belong on Stack Overflow or Computational Science. DO NOT ask about the efficiency of an algorithm, or other such questions, questions like that belong on Computational Science.

Filter by
Sorted by
Tagged with
4 votes
1 answer
274 views

I am looking for references that discuss numerical approaches to evaluating the Feynman path integral. Specifically, I would like references (books, papers, or reviews) that cover: Discretization ...
0 votes
0 answers
91 views

In quantum search algorithms (on a 2D grid or other setting), when there are multiple targets, a "successful search" event is often defined in following: $$P_{success}=\max_{t\in [0,T]} \...
YuzheCheung's user avatar
1 vote
2 answers
283 views

The Deutsch-Josza algorithm gives the result in one operation of the type of a $(0,1) \mapsto (0,1)$ function $f(x)$, i.e. if $f(x)$, is constant or balanced. With the parallel computing power of a ...
Yuan John Jiang's user avatar
1 vote
1 answer
546 views

In studying the temporal evolution of a system according to the deterministic model, we begin by considering a Taylor series expansion for the displacement $r$. First, we consider a positive variation ...
user3204810's user avatar
2 votes
2 answers
351 views

I'm looking into variational Monte-Carlo to determine the optimal variational parameter that corresponds to the ground state of a Hamiltonian. In general I am interested in tight binding models where ...
I.E.P.'s user avatar
  • 463
2 votes
0 answers
137 views

Background I have a set of $N$ receivers whose locations in $3D$ space are well-known. These receivers are immersed in a medium whose index of refraction (and thereby the velocity of light propagation)...
IntegerEuler's user avatar
0 votes
1 answer
275 views

I am trying to cross-check the Christoffel symbols and other very laborious geometric components in several metrics. In particular the Kerr metric is notoriously complex and results in expressions ...
UnkemptPanda's user avatar
0 votes
0 answers
99 views

In a force-based graph-layout simulation using Barnes-Hut, what are the conditions for collapse? With collapse I mean multiple (or even all) nodes "collapsing" into a single point. Is there ...
skep's user avatar
  • 1
1 vote
0 answers
58 views

Suppose we have a hamiltonian which has the parity symmetry (e.g., the Heisenberg model with the open boundary condition). Is there any quantum Monte-Carlo algorithm which can be used to calculate the ...
poisson's user avatar
  • 2,225
3 votes
2 answers
298 views

I'm rewriting a Diagrammatic Quantum Monte Carlo algorithm following Werner, P., Oka, T., & Millis, A. J. (2009). Diagrammatic Monte Carlo simulation of nonequilibrium systems. Physical Review B, ...
pter26's user avatar
  • 205
2 votes
0 answers
128 views

It is physically understood why the standard Metropolis-Hasting algorithm slows down near the critical temperature, since it doesn’t utilize the divergence of the correlation length. However, I’m ...
Andrew Yuan's user avatar
  • 2,323
0 votes
0 answers
83 views

I am studying how to apply neural networks to the problem of Quantum State Tomography (QST) and I got confused when it comes to decide if this is a supervised or unsupervised learning problem. At ...
Dimitri's user avatar
  • 161
0 votes
0 answers
56 views

I really need help to understand chapter 3.1. What is the method of relaxation? How can I use the method of relaxation to solve Laplace's equation? How can I use the first and second uniqueness ...
aaa's user avatar
  • 9
0 votes
0 answers
125 views

Now, we consider a non-orthonormal basis: $$\mathcal{S}_N=\{|\alpha\rangle,a^\dagger|\alpha\rangle,a^{\dagger 2}|\alpha\rangle,\ldots,a^{\dagger N}|\alpha\rangle\},$$ where $|\alpha\rangle$ is the ...
Young Q's user avatar
  • 23
3 votes
1 answer
279 views

Quantum algorithms and protocols are often expressed as circuit diagrams. But I have not been able to find the circuit diagram of BB84 protocol. Has anyone seen one?
Yuan John Jiang's user avatar
1 vote
0 answers
61 views

I am using a lens testing interferometer, where I record 4 to 5 interferograms with a 90$^{\circ}$ phase step between consecutive interferograms. In addition to the interferometer, I have also created ...
Hikikomori's user avatar
1 vote
0 answers
144 views

I want to use quantum Monte-Carlo results to benchmark an algorithm for the Bose-Hubbard model. There are so many QMC methods in the market, so which one is the simplest one? I want the ground state ...
poisson's user avatar
  • 2,225
0 votes
0 answers
120 views

I have a code given by my professor in which he applies the boundary conditions for the lid driven cavity flow. All the enforcement of boundary conditions I have seen elsewhere completely differ from ...
howstheJosh's user avatar
2 votes
1 answer
205 views

Let's say we have current density $J_i$ on a discretized grid with $(N_x \times N_y \times N_z)$ points. What is the best procedure to compute the induced magnetic field $(B_i)$ from the current ...
myresh's user avatar
  • 23
0 votes
0 answers
222 views

I understand that tensor networks and monte carlo simulations are based on completely different principles. However, to my knowledge both are used to simulate the time evolution of a system. Is there ...
Souroy's user avatar
  • 343
1 vote
1 answer
86 views

Suppose we have in our possession 100 pairs of electrons. Each electron A1 - A100 is entangled with its respective twin B1 - B100. Each entangled electron pair has been set up to have opposite spins (...
James's user avatar
  • 637
3 votes
1 answer
273 views

Grover's quantum search algorithm contends that it is possible to search for a specific item in an N-sized unsorted database in only $\sqrt N$ attempts. Classically, it takes N/2 attempts on average ...
James's user avatar
  • 637
0 votes
1 answer
169 views

Problem. I have a sensor array consisting of $n \gg 4$ receivers at unknown locations $\langle x_n, y_n, z_n\rangle$ embedded in an anisotropic medium whose index of refraction varies as a known ...
10GeV's user avatar
  • 849
1 vote
0 answers
193 views

I read that integration algorithms that are not time-reversible tend to be less "stable". Where stable means that the total energy stays constant (is conserved). I'd like to know what it ...
WedgeAntilles's user avatar
0 votes
0 answers
74 views

Given an equation (or a set of equations) involving matrices, is there an algorithm to find possible representations of these matrices? For example, we can consider a matrix $A$ such that $A^2=\begin{...
YeetTheorem's user avatar
1 vote
0 answers
25 views

Problem statement :- There is a moving source($s$) and other moving points ($p_{1}.... p_{n}$). There are fixed obstacles and a fixed destination point($d$). In each time step I have to query "Is ...
Amartya's user avatar
  • 111
1 vote
0 answers
114 views

I am an undergraduate student and my previous learning in physics is more on theory instead of numerics. I would be very grateful if you can point me to good introductory lecture notes/lecture videos ...
3 votes
1 answer
84 views

When it comes to building a quantum computer, it's like we need to consider how to perform universal gates fault-tolerantly, which is an unsolvable problem so far. While Clifford gates may be easier ...
Zundoko's user avatar
  • 31
0 votes
0 answers
201 views

I need an algorithm to solve Poisson's equation for gravitational potential. $$ \nabla^2\phi = 4\pi G\rho $$ where, $\phi$ is Gravitational Potential. I am trying PDE for the first time so, I need ...
Owl0223's user avatar
  • 13
1 vote
0 answers
179 views

I am doing a research to explore the existing numerical schemes that are used to solve the $3$D wave equation. The standard form of the problem in $3$ dimensional setting is : $$\Delta u= \frac{1}{c^2}...
NotaChoice's user avatar
0 votes
0 answers
115 views

I read once (I can't find it anymore:( ), that the Legendre transformation from the Lagrange formalism to the Hamilton formalism can be seen as dynamic programming. I have never seen it like this and ...
nuemlouno's user avatar
  • 387
2 votes
1 answer
195 views

The traditional, non Matrix Product State, formulation of the Density Matrix Re-normalization Group (DMRG) algorithm can be coded in python. Such a code can be found in the following link: https://...
user avatar
2 votes
0 answers
58 views

Suppose I have two identical qudits, the full Hilbert space is $\mathcal{H}=(\mathbb{C}^{d})^{\otimes 2}$. Say I'm given a supspace of states $\Lambda\subset \mathcal{H}$. What is the fastest ...
Zhiyuan Wang's user avatar
  • 1,075
0 votes
1 answer
113 views

I'm implementing the Metropolis algorithm to solve the 2D Ising model. I've understood how to implement it and now I'm trying to understand a bit of how the algorithm works. In the site I'm reading it ...
EigenAle's user avatar
  • 302
1 vote
0 answers
99 views

Quantum Fourier transform of $|a\rangle\in H_N$ $$|a\rangle\longrightarrow\sum_{l=0}^{N-1}e^{\frac{i2\pi a l}{N}}|l\rangle$$ where $N=2^n$ and $H_N$ is $N$-dimensional Hilbert space. The ...
Houpe's user avatar
  • 51
1 vote
0 answers
548 views

I was solving a differential equation, the equation being, $$\frac{dv}{dt} = g-\frac{c_d}{m}v^2,$$ which can be solved analytically to give $$v = \sqrt{\frac{mg}{c_d}}\left(\frac{e^{2t\sqrt{\frac{c_dg}...
Sumit Gupta's user avatar
2 votes
0 answers
332 views

I understand in plain terms superposition and entanglement, but I'm very unclear how either of these could work as a means to increase computation power. A helpful metaphor is that of the maze. A ...
WriterState's user avatar
1 vote
1 answer
438 views

People say that the number of qubits required in Shor's algorithm for factorizing $N$ should be $2\log N$ for control register and $\log N$ for target register. What is the reason why these numbers of ...
William's user avatar
  • 183
1 vote
0 answers
183 views

I have one question: Recently, I studied about several algorithms like VQE, QPE, QAOA and so on. I would like to make some comparison tables about those algorithms, their strengths and weaknesses. If ...
11 votes
1 answer
1k views

For Schrödinger's equation, $$\psi(x,t+\Delta t)=e^{-i H\Delta t}\psi(x,t)\approx\frac{1-\frac{1}{2}i H\Delta t}{1+\frac{1}{2}i H\Delta t}\psi(x,t).$$ The right-most expression is the Crank-Nicolson ...
XYZT's user avatar
  • 799
1 vote
0 answers
163 views

X-Posted on Quantum-Computing Stack Exchange In quantum computation, there is a famous algorithm to search a marked item in an unstructured database called Grover's algorithm. It achieves a quadratic ...
Hans-Ulrich Rudel's user avatar
2 votes
0 answers
68 views

The friends-of-friends algorithm (hereafter FOF) is commonly used to find halos in cosmological simulations. (For more information, please refer to here and here) I found that some literature argues ...
Wang Yun's user avatar
  • 529
5 votes
2 answers
499 views

The Kolmogorov complexity of a deterministic universe is constant. The Kolmogorov complexity of a nondeterministic universe grows over time. It grows whenever something happens that is not ...
LinusK's user avatar
  • 129
1 vote
1 answer
1k views

I'm relatively new to quantum computation and am taking a course in it. I was wondering if it is possible to code an algorithm which would be able to take an input of a 2 qubit state and perform a ...
Will's user avatar
  • 21
1 vote
0 answers
53 views

I've written an algorithm to solve the Time Difference of Arrival (TDoA) localization problem, using Bancroft's method (see). Given the coordinates of $n$ nodes in ...
10GeV's user avatar
  • 849
0 votes
1 answer
612 views

How do you calculate acceleration due to gravity for objects in 3D space? My current understanding for the force due to gravity on object $i$ from object $j$ is $$\mathbf{F}_g=(\mathbf{r}_j-\mathbf{r}...
maxbear123's user avatar
0 votes
1 answer
143 views

The Wikipedia article on the Novikov self-consistency principle has a section on time loop logic, where it discusses using time travel to solve any NP problem by finding an algorithm where the only ...
Yair Halberstadt's user avatar
5 votes
0 answers
584 views

I have been reading up on time evolution methods using matrix product states. Reading from Schollwoeck's notes on the density matrix renormalization group, (https://arxiv.org/abs/1008.3477), I looked ...
user147177's user avatar
8 votes
1 answer
233 views

I am wondering if there is a platform to which researchers share or publish the code they used in their research. I noticed that many researchers explain their algorithm and math and present the ...
1 vote
0 answers
176 views

I'm trying to make some toy computations on the $2D$ Ising model on a square lattice. I want to apply a renormalization transformation, and try to estimate observables on the renormalized lattice ...
user2723984's user avatar
  • 4,878