Description Usage Arguments Details Value See Also
View source: R/Unitary_Gates.R
An operation type that can be applied to a collection of qubits.
1 |
... |
parameters to pass |
Gates can be applied to qubits by calling their on() method with the qubits to be applied to supplied, or, alternatively, by simply calling the gate on the qubits. In other words calling 'MyGate.on(q1, q2)' to create an Operation on q1 and q2 is equivalent to 'MyGate(q1,q2)'. Gates operate on a certain number of qubits. All implementations of gate must implement the num_qubits method declaring how many qubits they act on. The gate feature classes SingleQubitGate and TwoQubitGate can be used to avoid writing this boilerplate. Linear combinations of gates can be created by adding gates together and multiplying them by scalars.
None
Other Unitary gates and operations:
gate_ccnot_pow()
,
gate_ccnot()
,
gate_ccx_pow()
,
gate_ccx()
,
gate_ccz_pow()
,
gate_ccz()
,
gate_cnot_pow()
,
gate_cnot()
,
gate_controlled()
,
gate_cs_wap()
,
gate_cx_pow()
,
gate_cx()
,
gate_cz_pow()
,
gate_cz()
,
gate_eigen()
,
gate_fredkin()
,
gate_fsim()
,
gate_givens()
,
gate_global_phase_operation()
,
gate_hpow()
,
gate_h()
,
gate_identity_each()
,
gate_identity()
,
gate_is_wap_pow()
,
gate_iswap()
,
gate_i()
,
gate_matrix()
,
gate_operation()
,
gate_phase_gradient()
,
gate_phased_is_wap_pow()
,
gate_phased_xz()
,
gate_quantum_fourier_transform()
,
gate_riswap()
,
gate_rx()
,
gate_ry()
,
gate_single_qubit()
,
gate_swap_pow()
,
gate_swap()
,
gate_s()
,
gate_tagged_opertaion()
,
gate_three_qubit_diagonal()
,
gate_three_qubit()
,
gate_toffoli()
,
gate_t()
,
gate_wait()
,
gate_x_pow()
,
gate_xx_pow()
,
gate_xx()
,
gate_x()
,
gate_y_pow()
,
gate_yy_pow()
,
gate_yy()
,
gate_y()
,
gate_z_pow()
,
gate_zz_pow()
,
gate_zz()
,
gate_z()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.