# Is there a tool to get the quantum circuit corresponding to a sparse matrix?

If I know a sparse matrix, is there any tool that allows me to get the corresponding quantum circuit directly?

If not what should I do?

For example，I want to try hamilton simulation and I have the sparse matrix. How can I get the corresponding quantum circuit? By code or by some software? Or get enough training?

I’m new in this field.

Quantum Computing Asked on November 15, 2021

Concerning Hamiltonian simulation, you can find very useful guide in this question.

General approach to quantum circuit construction is explained in paper Elementary gates for quantum computation.

Also paper Optimal Quantum Circuits for General Two-Qubit Gates can be helpful.

Answered by Martin Vesely on November 15, 2021

## Related Questions

### Suppress deprecation warnings from Qiskit

2  Asked on May 8, 2021 by akashkumar-patel

### Efficient implementation of the Clifford group for $n$ qubits

1  Asked on May 8, 2021 by martin-seysen

### Shor’s algorithm – modular exponentiation and Quantum Fourier transform and quantum phase estimation method

1  Asked on May 7, 2021

### Mitigating the noise in a quantum circuit

2  Asked on May 7, 2021 by vitality

### How does quantum teleportation relate to quantum encryption?

1  Asked on May 7, 2021

### How to implement quantum gate from matrix in Q#

1  Asked on May 6, 2021

### Qiskit Portfolio Optimization Application

1  Asked on May 6, 2021 by lana

### Convexity of coherent information – erroneous argument!

0  Asked on May 6, 2021

### Quantum Phase estimation with $2pi$ replaced with $2e$

1  Asked on May 3, 2021

### Kraus decomposition for non trace preserving operation: shouldn’t we have $0 leq sum_k E_k^{dagger} E_k leq I$

1  Asked on May 3, 2021

### Depolarization of density operator with zeros in diagonal

1  Asked on May 2, 2021 by hasan-iqbal

### Why do the qasm_simulator runtimes vary significantly for different IBMQ CouplingMap/NoiseModels?

1  Asked on May 2, 2021

### How is the expression for the optimal entanglement witness derived?

1  Asked on May 2, 2021

### Does entanglement allow communication of user specified information or not?

3  Asked on May 1, 2021 by j-todd

### How significant is achieving electronic transport in a single qubit at room temperature?

1  Asked on April 30, 2021 by user2521987

### Are separable, orthogonal states LOCC distinguishable?

1  Asked on April 30, 2021

### In amplitude amplification, isn’t the speedup hindered by the realization of $S_o$?

1  Asked on April 29, 2021

### Iterative Phase Estimation with noise vs standard Quantum Phase Estimation with noise

0  Asked on April 29, 2021 by mykolas-sveistrys

### How to optimize my HHL algorithm on qiskit?

1  Asked on April 29, 2021