Questions tagged [quantum-computing]

Quantum Computation deals with considering computation as fundamentally physical, as well as replacing the classical binary digit (bit) with the quantum binary digit (qubit). While the classical bit is either 0 or 1, the qubit can be in a superposition of these states. Computation systems that use quantum phenomena, such as superposition and entanglement, can solve certain complex problems very quickly.

Related Links

Quantum Computing on Wikipedia

(Textbook) Quantum Computation and Quantum Information: The de-facto standard textbook for learning about quantum computing.

(Video Series) Quantum computing for the determined: Khan-academy-style videos explaining quantum computation, by Michael Nielson (co-author of Quantum Computation and Quantum Information).

Quantum Computing Q&A site on the Stack Exchange network.

369 questions
0
votes
1 answer

How does the Z-Gate in sympy.physics.quantum.gate excatly work?

If I run the following Python script: from sympy.physics.quantum import qapply from sympy.physics.quantum.qubit import Qubit from sympy.physics.quantum.gate import X, Z, ZGate print("1a)…
Klaus Rohe
  • 782
  • 2
  • 7
  • 11
0
votes
1 answer

How to decompose a N x N unitary matrix into 2- or 1-qubit operators?

Given an N x N unitary operator M, I would like to build a circuit that does the same operation as M by explicitly inputting the gates myself (let's say into the IBMQ composer). I heard that 2-qubit operators could be decomposed using a Qiskit…
lumapools
  • 64
  • 6
0
votes
1 answer

sympy: substitution of expressions with Braket-notation

I am using sympy (in sagemath). I would like to do a substitution, with Braket-notation (for quantum mechanical problem). Below there is a minimalistic code, in order to reproduce the problem. from sympy.physics.quantum import Bra, Ket from sympy…
user823
  • 265
  • 2
  • 14
0
votes
1 answer

Why Pauli Z can be used to measure a single qubit ?

According to the Q# documentation, a single qubit can be measured by M.The method uses Pauli-Z. But why Pauli Z can be used to measure a single qubit? I have known the matrix of Pauli-Z like below: and the output result is given by the…
W.xueshan
  • 25
  • 1
0
votes
1 answer

where can I get the detailed tutorial or document for Q# machine learning

Recently, I'm learning the Q# language for machine learning. The sample of half-moons has been run correctly. Now I want to learn the detail of the code. But there is too little explanation to find. There are too many methods I can't understand and…
W.xueshan
  • 25
  • 1
0
votes
1 answer

DQCPError: The problem is not DQCP. while implementing a QSVM in IBM Quantum Experience

I was trying to execute the following code in IBM QE (implementing a QSVM based classifier) feature_dim = 2 feature_map = ZZFeatureMap(feature_dimension=feature_dim, reps=2, entanglement='linear') qsvm = QSVM(feature_map, training_input,…
0
votes
2 answers

Pytorch loss.backward() gives none grad for parameters of Rx, Ry Gate

I'm trying to train parameters params by performing linear Transformation on an input tensor x by matrix multiplying Rx to input followed by Ry matrix to their result. (each matrix Rx and Ry have a parameter params[i] each that define the…
0
votes
1 answer

How can I code for an anticontrol U1 gate in qiskit? There are references for anticontrol X but no U gate

Some of them use https://github.com/Qiskit/qiskit-terra/blob/3b3536bcdb83124d49723dd205573f169c82ea9c/qiskit/circuit/add_control.py#L24 this code to implement the anticontrol X gate
0
votes
1 answer

How to create a new Q# Project in VSCode

I am trying to figure out how to start writing code using Microsoft Q# and QDK, but am running into a lot of issues as there aren't any good documents that help you set up projects from scratch. I tried running dotnet new console and that created a…
Noah Iarrobino
  • 1,435
  • 1
  • 10
  • 31
0
votes
1 answer

Place value notation in quantum computing?

How do quantum computers store numbers in place value systems? Do they use the binary system, like traditional computation does?
0
votes
1 answer

Qisikit Statevector of Quantum Teleportation Circuit

from qiskit.quantum_info import random_statevector, Statevector from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit.visualization import plot_histogram, plot_bloch_multivector, array_to_latex from qiskit.extensions…
0
votes
1 answer

Getting Grammarinator to work with openqasm3 grammar

I've been trying to get grammarinator to generate random test programs based on the openQasm3.0 grammar (https://github.com/Qiskit/openqasm/blob/master/source/grammar/qasm3.g4), What I want to get is: qasm3.g4 -> Antlr4py3 -> *.g4 files ->…
Ming
  • 55
  • 4
0
votes
1 answer

Determining the phase of a qubit

Let's say I've got a qubit, being in one of two states: either [ 0.995+0j, 0.098+0j ] or [ 0.995+0j, -0.098+0j ], that is the state I get when applying a RY-gate with θ = ±π/x to |0>. In the both states above, x would be 16, but let's just say it…
JRE F
  • 1
  • 1
0
votes
1 answer

Quantum Espresso v6.8 not compiling on MacBook (Monterey 12.0.1 (21A559))

Following a guide posted here I have tried to install the newest version of quantum espresso (v6.8) on my MacBook (macOS: Monterey 12.0.1 (21A559)). I therefore installed all prerequisite packages (gcc, fftw, lapack, openblas, open-mpi, eigen) using…
franz
  • 121
  • 5
0
votes
2 answers

One question about circuit realization of Shor's algorithm in quantum computing

I am studying the quantum circuit realization of Shor's algorithm about factoring 15 into product of prime numbers using the python package Qiskit. See this website for details. My question is related to the realization of U-gate in this website. In…
CoolGas
  • 73
  • 1
  • 6