pennylane_calculquebec.utility.optimization.is_single_axis_gate#
- pennylane_calculquebec.utility.optimization.is_single_axis_gate(op: Operation, axis: str)#
check if given operation is on given basis
- Parameters:
op (Operation) – the operation to check
axis (str) – the basis to check
- Returns:
true if operation is on given basis. false otherwise
- Return type:
bool