Nothing
#' @export
QAOA_example <- function(case=1){
P <- 20
g <- pi/(1*P)
b <- pi/(2*P)
if(case==1){
c1 <- c(1,-1)
c2 <- c(1,1)
clauses <- rbind(c1,c2)
} else{
c1 <- c(1,1,0,0)
c2 <- c(1,1,0,1)
c3 <- c(1,1,-1,-1)
clauses <- rbind(c1,c2,c3)
}
v <- QAOA(clauses,gamma=g,beta=b,p=P,displayProgress=TRUE)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.