AND

pyquil.gates.AND(classical_reg1, classical_reg2)[source]

Produce an AND instruction.

NOTE: The order of operands was reversed in pyQuil <=1.9 .

Parameters:
  • classical_reg1 – The first classical register, which gets modified.
  • classical_reg2 – The second classical register or immediate value.
Returns:

A ClassicalAnd instance.