flamingpy.utils.linalg.clifford_vec_to_tensors

flamingpy.utils.linalg.clifford_vec_to_tensors(vec)[source]

Convert a local Clifford gate on n qubits to a list of n single-qubit Cliffords.

Take a local Clifford operation on n qubits in the form

(a_1, a_2, …, a_n, b_1, b_2, …, b_n, c_1, c_2, …, c_n, d_1, d_2, …, d_n),

and return a list of single-qubit Clifford gates as a list of 2x2 arrays, where the array at index k corresponds to the Clifford acting on qubit k given as:

[a_k, b_k] [c_k, d_k].

Parameters

vec (numpy.array) – a vector of size 4n specifying a local Clifford gate on n qubits.

Returns

n 2x2 arrays representing single-qubit local Clifford gates.

Return type

list[numpy.array]

Contents

Home

Background

Using FlamingPy

Development

Getting Help

Python API