IonQ Quantum Systems Now Available Through Qiskit

Quantum computing hardware and software company IonQ, has just fully integrated its quantum computing platform with Qiskit, a python-based open-source quantum software development kit (SDK). This means that Qiskit users with an IonQ account will be able to run their quantum programs on IonQ’s cloud quantum computing platform with little to no modification—simply change the[…]

Becoming a Certified Quantum Developer with IBM

The IBM newly launched quantum developer certification program is gaining traction, as it is the first of its kind and provides a knowledge assessment medium for the quantum industry, especially for those that operate or plans to adopt BM Quantum systems. Through the IBM Quantum Developer Certification program, the company’s quantum team expects developers to[…]

Perl – Sending Email with NET::SMTP using username and password

First of all double check that Authen::SASL is an installed module.. If you are not getting emails this could be why – it doesnt provide an error that is understandable! #!/usr/bin/perl ### ENSURE Authen::SASL is installed use Net::SMTP; use strict; use warnings; my $host= ‘yourhostname’; my $username= “yourpop3username”; my $password = “yourpassword”; my $from =[…]

Perl – Is a value decimal, real or a string?

To validate if a number is a number using regex. [perl] $number = “12.3”; if ($number =~ /\D/) { print “has nondigits\n” } if ($number =~ /^\d+$/) { print “is a whole number\n” } if ($number =~ /^-?\d+$/) { print “is an integer\n” } if ($number =~ /^[+-]?\d+$/) { print “is a +/- integer\n” }[…]

Perl – Basic Fork Example

#!/usr/local/bin/perl   use strict; use warnings;   print “Starting main program\n”; my @childs;   for ( my $count = 1; $count <= 10; $count++) {         my $pid = fork();         if ($pid) {         # parent         #print “pid is $pid, parent $$\n”;         push(@childs, $pid);         } elsif ($pid == 0) {                 # child                 sub1($count);                 exit 0;         } else[…]

PHP – Basic Fork Example

<?   print “Starting main program\n”; $childs = array();   for ( $count = 1; $count <= 10; $count++) {         $pid = pcntl_fork();         if ( $pid == -1 ) {                 // Fork failed                           echo “Fork failed\n”;                 exit(1);         } else if ( $pid ) {                 # parent                 #print “pid is $pid, parent $$\n”;                 array_push($childs, $pid);         }[…]

Posted in PHP

UNIX – Fork Explained

Mr. Peabody Explains fork() Introduction How Windows Does It How Unix Does It So Why Do People Want the Unix Way? How does it work in Perl? Introduction Say, Mr Peabody. I was just reading through the Perl 5.6 release notes and noticed that a new function called fork() is now supported in Perl. In[…]

Perl – Compare Array Contents when length is identical and order matches

Comparing arrays side by side. Do they match or dont they? @a=(1,0,1,0,0); @b=(0,0,1,0,0); NO! @arr1=(0,1,1,1,1,1,0,1); @arr2=(0,1,1,1,1,1,0,1); use Algorithm::Diff qw( LCS_length); my $arr_count1 = @arr1; my $arr_count2 = @arr2; if($arr_count1 != $arr_count2) { print “NOMATCH\n”; ## NO MATCH } else { $count = LCS_length (\@arr1,\@arr2); if ($arr_count1 eq $count) { print “MATCH\n”; ## identical arrays }[…]