iqm.iqm_client.instruction.is_directed_instruction

iqm.iqm_client.instruction.is_directed_instruction#

iqm.iqm_client.instruction.is_directed_instruction(name)#

Checks if the instruction with the given name is directed, i.e. if the instruction is allowed only in the direction defined by the operation loci in the quantum architecture.

Parameters:

name (str) – The name of the instruction to check

Returns:

True if the instruction is valid only in the direction defined by the architecture specification; or False if the instruction is valid also with the qubits in the locus in reversed order.

Return type:

bool