cran / QuantumOps

:exclamation: This is a read-only mirror of the CRAN R package repository. QuantumOps — Performs Common Linear Algebra Operations Used in Quantum Computing and Implements Quantum Algorithms
2 stars 0 forks source link

QuantumClassifier Example Returns Error #1

Open drag05 opened 3 months ago

drag05 commented 3 months ago

The QuantumClassifier example in Manual returns the following error:

> tt = QuantumClassifier(n=8,B=2,r=c(1,3),
+                        matrix(sample(256,replace=TRUE),nrow=1),
+                        array(1),0,1,1,.001,1,"test")
[1] "Iteration 1 of 1"
[1] ""
Sample 1Computing gradients for 33 gates:.................................[1] "On 1 inputs"
[1] "The final bias value is  0.000523482874654041"
[1] "With a single measurement:    Network achieves  0.524674570635611 accuracy on  Train  set"
[1] "With a repeated measurements: Network achieves  1 accuracy on  Train  set"
[1] "For target digit: P1:  NaN   NetOut:  NaN   Repeated Accuracy:  NaN"
[1] "For other digits: P1:  NaN   NetOut:  NaN   Repeated Accuracy:  NaN"
Error in rep(0, N) : invalid 'times' argument

> traceback()
3: networkTest(M, "Test")
2: networkValidate(M)
1: QuantumClassifier(n = 8, B = 2, r = c(1, 3), matrix(sample(256, 
       replace = TRUE), nrow = 1), array(1), 0, 1, 1, 0.001, 1, 
       "test")
gaborcsardi commented 3 months ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!

drag05 commented 3 months ago

@gaborcsardi I will send this issue to maintainer via email. Thanks!