# Tag Info

Accepted

### Is there a name for a gate that 'moves' one qubit to a new position via multiple SWAP gates?

Note that the first SWAP places qubit $i+1$ at position $i$. The second one places qubit $i+2$ at position $i+1$. Eventually, the qubit number $k$ will be at place $k-1$ for $k>i$, while qubit $i$ ...
• 2,696
Accepted

### How to implement subplots (several blochsphere plots) using qiskit?

Function plot_bloch_vector accepts matplotlib.axes.Axes to use for rendering the bloch sphere. So, you can create a ...
• 4,673

### training parametric circuits in Qiskit

It focuses on selecting the gradients because this code is from the Qiskit Global Summer School on Machine Learning from 2021, from a lecture on how to train quantum circuits! If you follow the full ...
• 2,253

### QuantumCircuit with list of qbits as an argument

If I am understanding the question correctly, this would be one approach: ...
• 1,833

### How to get precise angle values in Qiskit while using initialize() function to generate arbitrary quantum state?

This is probably not the only way to do it, but you can always look at the QASM file. You can do it with qc.qasm(formatted=True), which will show you the underlying ...
Accepted

### How to actually send Qiskit code to the que to be ran on an IBM Quantum Computer?

1. Load your account and select provider The Qiskit IBMQ account object is the local reference for accessing your IBM Quantum account, and all of the providers, ...
• 1,833
Accepted

### A fundamental question on multiple rotation of a qubit using $SU(2)$

There is more than one issue in your code. You switched ϕ and θ in the function that convert polar coordinates to cartesian ...
• 4,673
Accepted

• 11.6k
Accepted

• 507
Accepted

### how to get the backend_status using qiskit?

We use Job_monitor to get the status of a job (IBMQJob instance) To get the status of an IBMQ backend, we use ...
• 4,673
1 vote

### Why does qiskit's density matrix output obscure the text, can it make this picture better?

recommend using plot_state_hinton instead of plot_state_city, for better view of it. I guess it is a bug or something that makes ...
• 507
1 vote
Accepted

### Implementing deutsch_problem(seed=None) and deutsch() from qiskit text

This is how I do it, I tried to append gate directly with to_gate, remember to transpile or decompose the label gate before run simulator. if you want to get unitary of the gate, you can use Operator ...
• 507
1 vote

### How to get precise angle values in Qiskit while using initialize() function to generate arbitrary quantum state?

Qiskit stores Instruction parameters in params attribute. So, you can access these values as follows: ...
• 4,673
1 vote

### How to get precise angle values in Qiskit while using initialize() function to generate arbitrary quantum state?

you can extract it directly like this, I recommend using transpile to decompose all to ry gate instead, where draw() will show decimal place without round it to 3 ...
• 507
1 vote
Accepted

### How to select parts of qubits for visualization

You can do that with snapshot_density_matrix Example: ...
• 507
1 vote
Accepted

### How can I plot a complex alpha in qiskit?

I suggest you can learn to look at Qiskit documentation, and figuring out how to solve the exercises by yourself. https://qiskit.org/documentation/apidoc/visualization.html This is the way how I do ...
• 507
1 vote

### Quantum SVM with large feature set

Maybe this article can help you: 'Automatic design of quantum feature maps', Sergio Altares-López, Angela Ribeiro and Juan José García-Ripoll, 19 August 2021 - https://doi.org/10.1088/2058-9565/ac1ab1....
1 vote

### Why does Parity mapping allow 2 qubit reduction?

The Parity mapper 2-qubit reduction uses the Z2Symmetry logic in Qiskit. For any qubit ...
• 631
1 vote

### How to initialise own values instead of using Tsp.create_random_instance

The method Tsp.create_random_instance() creates a random instance of the TSP problem. Internally, it uses NetworkX's function ...
• 4,673
1 vote
Accepted

### Hadamard on first qubit for two qubit state doesn't output what it should on Qiskit

This is because Qiskit uses little-endian[1] for bit ordering. So, $|01\rangle$ means that first qubit in the state $|1\rangle$ and second qubit in the state $|0\rangle$. For more details see the ...
• 4,673

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