CNOT_X_basis

forest.benchmarking.classical_logic.CNOT_X_basis(control, target) → pyquil.quil.Program

The CNOT in the X basis, i.e.

CNOTX = |+X+| * I + |-X-| * Z

where |+> and |-> are the +/- eigenstate of the Pauli X operator, and * denotes a tensor product.

Parameters:
  • control – qubit label
  • target – qubit label
Returns:

program