Share Your Experience: Take the 2024 Developer Survey

# Tag Info

Accepted

### Quantum circuit not showing when using qiskit with pycharm

By default, qiskit draws the quantum circuit for inline visualization (because inline figures are typlically used with jupyter lab). To fix this issue, you need to ...
Accepted

We start with the state, $$\sqrt{1/3}|001\rangle + \sqrt{2/3}|111\rangle$$ Then apply $R_y(\pi/2)$ to the first qubit controlled by the second qubit. By linearity, we can calculate the impact of ...
• 10.6k
Accepted

### Should I Stick to an Older Version of Qiskit Due to Tutorial Compatibility Issues?

You should learn the newer qiskit>=1.0.0 version because this newer version is released with emphasis on: High-performance code base: ...
Accepted

• 187
1 vote
Accepted

### Why circuit in Shor algorithm differs for different factorized numbers?

Shor's algorithm is indeed fascinating, but its implementation can vary based on the number you're trying to factorize. The main reason for this variation is the choice of parameters in the algorithm, ...
1 vote
Accepted

### Error when using crx gate in quantum circuit

You are getting unknown instruction error because qasm_simulator does not have crx gate in ...
1 vote

### Qiskit: Evolve TrotterQRTE from Operator

You can use SparsePauliOp.from_operator() method to construct a SparsePauliOp from an ...
• 10.6k
1 vote

### Easiest hash function to implement on Qiskit

I wrote an example hash function in the documentation of the qlasskit library; the result is directly exportable to qiskit, so it may be the answer for your question: https://dakk.github.io/qlasskit/...
1 vote

### How can I implement an n-bit Toffoli gate?

You can use MCXGate: def toffoli_general(qr, control, target): qr.append(MCXGate(num_ctrl_qubits=len(control)), control + [target]) With for example ...
1 vote

### Solving optimization problems on real quantum hardware

Current quantum hardware based on a quantum circuit model has a limited number of qubits, which are prone to errors and decoherence. So, comparing solutions from classical solvers with those produced ...
• 2,646
1 vote

### How to perform noisy simulation of qiskit fake backends?

The fake backends in qiskit are built to mimic the behaviors of IBM Quantum systems using system snapshots. This system snapshots (or fake backends) contain ...
1 vote

### How to perform noisy simulation of qiskit fake backends?

Qiskit fake backends can be used directly for noisy simulations. For example: ...
• 10.6k
1 vote
Accepted

### QisKit Matrix Exponential VQC

I think EvolvedOperatorAnsatz is a good option. It accepts a list of operators and an evolution synthesis and constructs a parametrized quantum circuit: ...
• 10.6k

Only top scored, non community-wiki answers of a minimum length are eligible