Expand description
Symbolic matrix operations.
This module provides a proper matrix type where each element is a symbolic expression. This is essential for quantum computing where we work with parameterized gates and symbolic Hamiltonians.
Structs§
- Symbolic
Matrix - A symbolic matrix where each element is an Expression.
Functions§
- cnot
- Create the CNOT (CX) gate matrix.
- controlled
- Create a controlled-U gate matrix.
- hadamard
- Create the Hadamard gate matrix.
- pauli_x
- Create the Pauli X gate matrix.
- pauli_y
- Create the Pauli Y gate matrix.
- pauli_z
- Create the Pauli Z gate matrix.
- rx
- Create a rotation gate Rx(θ) around the X axis.
- ry
- Create a rotation gate Ry(θ) around the Y axis.
- rz
- Create a rotation gate Rz(θ) around the Z axis.
- s_gate
- Create the S (phase) gate matrix.
- swap
- Create the SWAP gate matrix.
- t_gate
- Create the T gate matrix.