qml.ops.qubit.attributes.supports_broadcasting¶
- supports_broadcasting = {'AmplitudeEmbedding', 'AngleEmbedding', 'CRX', 'CRY', 'CRZ', 'CRot', 'ControlledPhaseShift', 'ControlledQubitUnitary', 'DiagonalQubitUnitary', 'DoubleExcitation', 'DoubleExcitationMinus', 'DoubleExcitationPlus', 'FermionicSWAP', 'IQPEmbedding', 'IsingXX', 'IsingXY', 'IsingYY', 'IsingZZ', 'MultiRZ', 'OrbitalRotation', 'PCPhase', 'PauliRot', 'PhaseShift', 'QAOAEmbedding', 'QubitStateVector', 'QubitUnitary', 'RX', 'RY', 'RZ', 'Rot', 'SingleExcitation', 'SingleExcitationMinus', 'SingleExcitationPlus', 'SpecialUnitary', 'StatePrep', 'U1', 'U2', 'U3'}¶
Operations that support parameter broadcasting.
For such operations, the input parameters are allowed to have a single leading additional broadcasting dimension, creating the operation with a
batch_size
and leading to broadcasted tapes when used in aQuantumTape
.- Type
code/api/pennylane.ops.qubit.attributes.supports_broadcasting
Download Python script
Download Notebook
View on GitHub