qrao.encoding.z_to_21p_qrac_basis_circuit

z_to_21p_qrac_basis_circuit(basis)[source]

Return the basis rotation corresponding to the (2,1,p)-QRAC

Parameters:

basis (List[int]) – 0 or 1 for each qubit

Return type:

QuantumCircuit

Returns:

The QuantumCircuit implementing the rotation.