MatrixGate
public struct MatrixGate
extension MatrixGate: ConfigurableGate
A quantum gate used on genetic programming: Matrix
-
Errors throwed by
See moreMatrixGate.init(matrix:)
Declaration
Swift
public enum InitError : Error
-
Initializes a
ConfigurableGate
instance with a givenmatrix
.Throws
Declaration
Swift
public init(matrix: Matrix) throws
Parameters
matrix
A matrix able to handle at least 1 qubits, i.e. with 2^qubitCount rows.
Return Value
A
ConfigurableGate
instance.
-
Declaration
Swift
public func makeFixed(inputs: [Int]) -> Result<Gate, EvolveCircuitError>