CircuitDensityMatrixFactory
public protocol CircuitDensityMatrixFactory
Factory to build CircuitDensityMatrix
instances
-
Builds
CircuitDensityMatrix
instances.Declaration
Swift
func makeDensityMatrix(matrix: Matrix) -> Result<CircuitDensityMatrix, MakeDensityMatrixError>
Parameters
matrix
State of a quantum circuit expressed as a
Matrix
.Return Value
A
CircuitDensityMatrix
instance. OrMakeDensityMatrixError
error.