# lifted_gate¶

pyquil.unitary_tools.lifted_gate(gate, n_qubits)[source]

Lift a pyquil Gate in a full n_qubits-qubit Hilbert space.

This function looks up the matrix form of the gate and then dispatches to lifted_gate_matrix() with the target qubits.

Parameters: gate (Gate) – A gate n_qubits (int) – The total number of qubits. A 2^n by 2^n lifted version of the gate acting on its specified qubits.