Module: cirq.linalg.operator_spaces

Utilities for manipulating linear operators as elements of vector space.

Functions

`expand_matrix_in_orthogonal_basis(...)`: Computes coefficients of expansion of m in basis.

`hilbert_schmidt_inner_product(...)`: Computes Hilbert-Schmidt inner product of two matrices.

`kron_bases(...)`: Creates tensor product of bases.

`matrix_from_basis_coefficients(...)`: Computes linear combination of basis vectors with given coefficients.

`pow_pauli_combination(...)`: Computes non-negative integer power of single-qubit Pauli combination.

PAULI_BASIS

``````{
'I': array([[1., 0.],
[0., 1.]]),
'X': array([[0., 1.],
[1., 0.]]),
'Y': array([[ 0.+0.j, -0.-1.j],
[ 0.+1.j,  0.+0.j]]),
'Z': array([[ 1.,  0.],
[ 0., -1.]])
}
``````

The four Pauli matrices (including identity) keyed by character.

[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]