checkCases: checkCases

Description Usage Arguments Value Examples

View source: R/checkCases.R

Description

Takes in a matrix of clauses and determines what percentage of the clauses each possible value satisfies.

Usage

1
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

1
 checkCases( rbind(c(1,-1),c(1,1) ) )

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.