Exp11Gate(*, half_turns: Union[cirq.value.symbol.Symbol, float, NoneType] = None, rads: Union[float, NoneType] = None, degs: Union[float, NoneType] = None)¶
A two-qubit interaction that phases the amplitude of the 11 state.
This gate is exp(i * pi * |11><11| * half_turn).
Note that this half_turn parameter is such that a full turn is the identity matrix, in contrast to the single qubit gates, where a full turn is minus identity. The single qubit half-turn gates are defined so that a full turn corresponds to a rotation on the Bloch sphere of a 360 degree rotation. For two qubit gates, there isn’t a Bloch sphere, so the half_turn corresponds to half of a full rotation in U(4).
__init__(*, half_turns: Union[cirq.value.symbol.Symbol, float, NoneType] = None, rads: Union[float, NoneType] = None, degs: Union[float, NoneType] = None) → None¶
Initializes the gate.
At most one angle argument may be specified. If more are specified, the result is considered ambiguous and an error is thrown. If no angle argument is given, the default value of one half turn is used.
- half_turns – The amount of phasing of the 11 state, in half_turns.
- rads – The amount of phasing of the 11 state, in radians.
- degs – The amount of phasing of the 11 state, in degrees.
Whether the effect is parameterized.
known_qasm_output(qubits, …], args)
Returns lines of QASM output representing the gate on the given qubits or None if a simple conversion is not possible.
Returns an application of this gate to the given qubits.
parameterized_value_to_proto(param, float], out)
Returns a phased version of the effect.
Returns a key that differs between non-interchangeable qubits.
Describes how to draw something in a text diagram.
Turns this value into the desired type, if possible.
Checks if this gate can be applied to the given qubits.
Resolve the parameters in the effect.