Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

基于门的量子计算

基于门的量子计算算法
自 R2023a 起

创建量子门和电路,在本地计算机上对电路进行模拟,并使用 Amazon® Web Services (AWS®) 或 IBM® Qiskit® 运行时服务在远程硬件上运行电路。

全部展开

quantumCircuitQuantum computing circuit
quantum.gate.SimpleGateSimple gate for quantum computing
quantum.gate.CompositeGateComposite gate for quantum computing
quantum.gate.QuantumStateState of qubits in quantum circuit
quantum.gate.QuantumMeasurementMeasurement result of quantum circuit
quantum.backend.QuantumDeviceAWSQuantum device available through AWS
quantum.backend.QuantumTaskAWSTask sent to AWS for execution on quantum device
quantum.backend.QuantumDeviceIBMQuantum device available through IBM (自 R2023b 起)
quantum.backend.QuantumTaskIBMTask sent to IBM for execution on quantum device (自 R2023b 起)

属性

QuantumCircuitChart PropertiesQuantum circuit plot appearance and behavior (自 R2023b 起)

函数

全部展开

一个目标量子位上的门

hGateHadamard gate
idGateIdentity gate
xGatePauli X gate
yGatePauli Y gate
zGatePauli Z gate

旋转门

rxGatex-axis rotation gate
ryGatey-axis rotation gate
rzGatez-axis rotation gate
r1Gatez-axis rotation gate with global phase
sGateS gate
siGateInverse S gate
tGateT gate
tiGateInverse T gate

具有一个控制量子位和一个目标量子位的门

chGateControlled Hadamard gate
cnotGateCNOT gate (controlled X gate)
cxGateControlled X gate (CNOT gate)
cyGateControlled Y gate
czGateControlled Z gate

交换两个量子位状态的门

swapGateSwap gate

受控旋转门

crxGateControlled x-axis rotation gate
cryGateControlled y-axis rotation gate
crzGateControlled z-axis rotation gate
cr1GateControlled z-axis rotation gate with global phase

受控 X 门

ccxGateControlled controlled X gate (CCNOT or Toffoli gate)

伊辛耦合门

rxxGateIsing XX coupling gate
ryyGateIsing YY coupling gate
rzzGateIsing ZZ coupling gate

复合门和专用门

compositeGateConstruct composite gate for quantum computing
qftGateQuantum Fourier transform gate
initGateInitialization gate with specified qubit states (自 R2023b 起)
unitaryGateUnitary matrix gate (自 R2023b 起)
mcxGateMulti-controlled X gate

统一受控旋转门

ucrxGateUniformly controlled x-axis rotation gate (自 R2023b 起)
ucryGateUniformly controlled y-axis rotation gate (自 R2023b 起)
ucrzGateUniformly controlled z-axis rotation gate (自 R2023b 起)

主题

基础知识和工作流

精选示例