|View source on GitHub|
GateFamily which accepts instances of
cirq.ParallelGate and it's sub_gate.
cirq.ops.ParallelGateFamily( gate: Union[Type[raw_types.Gate], raw_types.Gate], *, name: Optional[str] = None, description: Optional[str] = None, max_parallel_allowed: Optional[int] = None ) -> None
ParallelGateFamily is useful for description and validation of scenarios where multiple
copies of a unitary gate can act in parallel.
cirq.ParallelGate is used to express
such a gate with a corresponding unitary
sub_gate that acts in parallel.
ParallelGateFamily supports initialization via a) Gate Instance that can be applied in parallel. b) Gate Type whose instances can be applied in parallel.
In both the cases, the users can specify an additional parameter
is used to verify the maximum number of qubits on which any given gate instance can act on.
To verify containment of a given
g, the gate family verfies that
max_parallel_allowed is not None.
g is an instance of
cirq.ParallelGate) is an accepted gate
based on type or instance checks depending on the initialization gate type.
The gate which can act in parallel. It can be a python
||The name of the gate family.|
||Human readable description of the gate family.|
The maximum number of qubits on which a given gate
__contains__( item: Union[
cirq.ops.Operation] ) -> bool
__eq__( other: _SupportsValueEquality ) -> bool
__ne__( other: _SupportsValueEquality ) -> bool