几何上来说,三种门的作用是将量子比特绕各自的轴旋转180^\circ。 RX门、RY门、RZ门:添加方式分别为qc.rx(0, theta),qc.ry(0, theta),qc.rz(0, theta),其中0是量子电路中量子比特的索引,theta则是旋转的角度。几何上来说,这三种门的作用是将量子比特绕各自的轴旋转任意角度theta。 控制非门(CNOT门或CX...
├┤ Rx(b) ├┤ H ├ └───┘└─────────────┘└───────┘└───┘ ) ]), -0.5 * ComposedOp([ OperatorMeasurement(Z), CircuitStateFn( ┌───┐┌─────────────┐┌───────┐ q0: ┤ H ├┤ Rz(a + π/2) ├┤ Rx(b) ├...
super().__init__() self.rx = tq.RX(rotation=0.5) # 可训练参数 self.measure = tq.MeasureAll(obs=tq.PauliZ) def forward(self, x): q_device = tq.QuantumDevice(n_wires=1) self.rx(q_device, wires=0) # 量子操作 return self.measure(q_device) # 测量结果作为输出 model = nn.Sequen...
Add NormalizeRXAngle and RXCalibrationBuilder passes (#10634) Preparations to update the default MPL drawer style to "iqx" (#10950) Changed Pass manager refactoring: cleanup internals (#10127) Deprecate Unroller pass (#10607) Singleton parameterless controlled gates (#10898) Pin Numpy < 2 in ...
(rxx). Once defined, the decomposition rules between different basis gates must added. This allows the Qiskit transpiler to take an input circuit defined in one basis, and output the same circuit rewritten in any other supported gate set. The decomposition between cx, rxx, and global MS ...
For the case of trapped ions, this involved specifying the global MS gate, and its corresponding two-qubit building block the XX-rotation gate (rxx). Once defined, the decomposition rules between different basis gates must added. This allows the Qiskit transpiler to take an input circuit ...
qiskit/circuit/library/standard_gates/rxx.py 1 97.78% qiskit/circuit/library/standard_gates/rzx.py 1 97.78% qiskit/circuit/library/standard_gates/u2.py 1 96.88% qiskit/circuit/random/utils.py 1 94.87% Totals Change from base Build 13268699272: -0.4% Covered Lines: 77530 Relevant Lines: 88230...
这样就实现了一个单比特RX门,旋转角度为pi。 Rx(pi)的脉冲信号图 对[1,0]的运行结果 在这里我需要重点解释一下构建pulse和converter的问题。在qiskit_dynamics中,信号是将pulse输入到converter中得到的(也可以直接用signal内置的函数调用现成的signal,但是我没有用)。在生成一个pulse的schedule之后,converter是这样生...
Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives. - Optimal Synthesis into RXX(theta) (#6551) · Qiskit/qiskit@0a4c666