Skip to main content

apply_enum_tqe_slice

Function apply_enum_tqe_slice 

Source
pub fn apply_enum_tqe_slice(
    zs0: &mut [u64],
    xs0: &mut [u64],
    zs1: &mut [u64],
    xs1: &mut [u64],
    signs: &mut [u64],
    g0: Pauli,
    g1: Pauli,
)
Expand description

Apply TQE gate where the gate type is encoded in two Pauli enums.

ยงArguments

  • zs0 (&mut [u64]) - z bits on the first qubit.
  • xs0 (&mut [u64]) - x bits on the first qubit.
  • zs1 (&mut [u64]) - z bits on the second qubit.
  • xs1 (&mut [u64]) - x bits on the second qubit.
  • signs (&mut [u64]) - sign bits for the qubits.
  • g0 (Pauli) - Pauli on the first qubit.
  • g1 (Pauli) - Pauli on the second qubit.