gate_Gate: Gate

Description Usage Arguments Details Value See Also

View source: R/Unitary_Gates.R

Description

An operation type that can be applied to a collection of qubits.

Usage

1

Arguments

...

parameters to pass

Details

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.

Value

None

See Also

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()


henry090/Cirq documentation built on June 13, 2020, 1:28 a.m.