Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Qiskit is an open source SDK for working with quantum computers at the level of pulses, circuits and application modules. If appropriate, also use the [programming] tag. Please include the version of Qiskit you use when using this tag.
2
votes
1
answer
1k
views
Controlled-Initialize instruction
version
Latest version is used:
import qiskit
qiskit. … __qiskit_version__
{'qiskit': '0.10.5',
'qiskit-terra': '0.8.2',
'qiskit-ignis': '0.1.1',
'qiskit-aer': '0.2.1',
'qiskit-ibmq-provider': '0.2.2',
'qiskit-aqua': '0.5.2'} …
1
vote
1
answer
260
views
(name of gate) is not in the list of basis operations
I'm trying to define a custom gate for my computations. I decided to copy the structure in one of the files in qiskit.extensions.standard package. Here is the code of h.py (Hadamard gate):
# -*- codi …
4
votes
1
answer
882
views
Symbolic computation with quantum circuits
have identified some possibilities:
SymPy (Python library, see also this), unfortunately, the software forces you to encode the matrix of each gate explicitly instead of working with circuits;
IBM Qiskit … v0.25 operator framework (Python library), which claims
Qiskit operators fully support parameterization
even if it seems not completely true since the same error of this older question holds and this …
0
votes
1
answer
197
views
Qiskit plot_state_qsphere phase error
Since the coefficient of $|1\rangle$ is $i$ I'm expecting phase $\pi/2$ since $i = e^{i \pi/2}$.
from qiskit import *
from qiskit.tools.visualization import plot_state_qsphere
print(qiskit. … __qiskit_version__) # {'qiskit-terra': '0.15.1', 'qiskit-aer': '0.6.1', 'qiskit-ignis': '0.4.0', 'qiskit-ibmq-provider': '0.8.0', 'qiskit-aqua': '0.7.5', 'qiskit': '0.20.0'}
circuit = QuantumCircuit(1) …
0
votes
Question on qiskit.circuit.library.PiecewiseChebyshev Qiskit circuit library
circuit works: if I encode as input the $n$-qubit state $|i\rangle$ then I will read in the output $m$-qubit quantum register the number $i/2^m$:
from qiskit.circuit.library import PiecewiseChebyshev
from qiskit …
0
votes
1
answer
135
views
Qiskit QFT matrix does not match with DFT matrix
The unitary matrix associated with the QFT circuit in Qiskit does not match the actual DFT matrix. … Note that the QFT circuit already includes the swap gates at the end of the circuit.
import numpy as np
from scipy.linalg import dft
from qiskit import *
from qiskit.circuit.library import QFT
n = 2
dft_matrix …