checkCases {QuantumOps} | R Documentation |
checkCases
Description
Takes in a matrix of clauses and determines what percentage of the clauses each possible value satisfies.
Usage
checkCases(clauses,colorCode=FALSE)
Arguments
clauses |
Matrix that specifies the clauses. Each row is a clause. Each row must contain the same number of columns as qubits, the bit length of the clauses. 0 and 1 are values which are added to clause, ignored bits should be set to any other value. |
colorCode |
Boolean which specifies if data should be returned as list of colors rather than numerical data |
Value
Array of numbers or string color names
Examples
checkCases( rbind(c(1,-1),c(1,1) ) )
[Package QuantumOps version 3.0.1 Index]