A Beginner’s Guide to Quantum Programming

Quantum Computing Concept

A new guide on programming quantum algorithms leads programmers through every step, from theory to implementing the algorithms on IBM’s publicly accessible 5-qubit ibmqx4 quantum computer and others.

The guide covers the fundamentals, along with a summary of the main quantum algorithms and instructions on how to implement them on publicly available quantum computers

As quantum computers proliferate and become more widely available, would-be quantum programmers are left scratching their brains over how to get started in the field. A new beginner’s guide offers a complete introduction to quantum algorithms and their implementation on existing hardware.

“Writing quantum algorithms is radically different from writing classical computing programs and requires some understanding of quantum principles and the mathematics behind them,” said Andrey Y. Lokhov, a scientist at Los Alamos National Laboratory and lead author of the recently published guide in ACM Transactions on Quantum Computing. “Our guide helps quantum programmers get started in the field, which is bound to grow as more and more quantum computers with more and more qubits become commonplace.”

The book reviews 20 quantum algorithms in brief, stand-alone parts and includes well-known, fundamental quantum algorithms like Grover’s Algorithm for database searching and much more, and Shor’s Algorithm for factoring integers. The tutorial then teaches programmers how to implement the algorithms on several quantum computers, including IBM’s publicly available 5-qubit IBMQX4 quantum computer, to make the connection to the real world. In each instance, the authors go through the implementation’s outcomes and clarify the differences between the simulator and actual hardware runs.

“This article was the result of a rapid-response effort by the Information Science and Technology Institute at Los Alamos, where about 20 Lab staff members self-selected to learn about and implement a standard quantum algorithm on the IBM Q quantum system,” said Stephan Eidenbenz, a senior[{” attribute=””quantum computing scientist at Los Alamos, a coauthor of the article and director of ISTI when work on it began.

It was intended to train employees who had little or no training with quantum computing to implement a quantum algorithm on a real-world quantum computer in order to prepare the Los Alamos workforce for the quantum era, according to Eidenbenz.

These staff members, in addition to a few students and well-established quantum experts, make up the long author list of this “crowd-sourced” overview article that has already been heavily cited, Eidenbenz said.

Before moving on to the more complex topics of unitary transformations and gates, quantum circuits, and quantum algorithms, the first section of the guide explains the fundamentals of programming a quantum computer, including qubits and qubit systems, superposition, entanglement, and quantum measurements.

The section on the IBM quantum computer covers the set of gates available for algorithms, the actual physical gates implemented, how the qubits are connected, and the sources of noise, or errors.

Another section looks at the various types of quantum algorithms. From there, the guide dives into the 20 selected algorithms, with a problem definition, description, and steps for implementing each one on the

Read More

Camping Gadgets to Buy: Cool Products to Take on Your Outdoor Adventure

We independently source all of the awesome products and experiences that we feature on Thrillist. If you buy or book from the links on our site, we may receive an affiliate commission — which in turn supports our work.

We live in a world that is constantly in flux—evolving, adjusting, devolving, readingjusting. So it only makes sense that in this modern world, you’d naturally need camping gadgets in order to disconnect from your day-to-day fill with, well, gadgets. We love to go camping to get away from the rigamarole of our daily lives, to connect with nature and crack hard seltzers at 11am. Some of us like to turn off our phones and yearn to discover our more primal selves. And that’s wonderful… for some. But if your version of inner peace isn’t achieved by leaving your phone behind, then you should naturally bring something that can charge your phone in the woods—and any other tech that makes sense for you.

We think the best way to camp is the way that makes you feel the most happy and at peace. Modern camping gear has made leaps and bounds when it comes to the devices we can employ to make us feel more comfortable, safe, and relaxed in the wilderness. And even those who aren’t looking to charge their phones could benefit from a high-tech camp stove or a cleverly designed headlamp. To wit, we found eight amazing tech products for camping that will only enhance your experience off the grid, so you can spend more time telling stories with friends around the fire and less time looking for new batteries for that burnt out headlamp.

Read More

Italy gives interior design major fresh perspective on her work – VCU News

Ivania Del Cid, an interior design major in the Virginia Commonwealth University School of the Arts, studied in Italy for a month this summer, visiting culturally significant art sites and taking a new look at her artistic process.

She is one of three VCU students who were awarded a 2022 Benjamin A. Gilman International Scholarship, which was established to help American students study abroad. VCU’s Global Education Office facilitated the study abroad program and serves as campus advisors for Gilman Scholarship applicants.

Del Cid said she’s always had a desire to travel and experience other cultures, and decided to apply for a Gilman scholarship when one of her professors mentioned they were leading a study abroad trip.

While that trip ended up being canceled, Del Cid was able to join the graphic design department on a faculty-led program.

“I feel like [a graphic design-focused trip] would still be helpful with my degree and then I could still take the opportunity of the scholarship that I had been given,” Del Cid said.

She participated in the month-long program “A Practice of Looking and Slowing Down in Design” in Florence. Del Cid said the Santa Reparata International School of Art provided the group with class space. Rather than structured classes in the classroom, group gatherings amounted to “a collaborative slowing down,” she said.

On the group’s regular excursions, students had the freedom to take their time observing the spaces they were visiting.

“So anytime we went on a trip, it would be for as long as we wanted. We could stay at the place for as long as we wanted and just take it all in,” Del Cid said.

After the day trip, students would draw, sketch, or just jot down their thoughts from the day. The group of 20 students used this material to create a newspaper, with each person making a spread based on something they found compelling on the trip.

Since it was a graphic design course, students chose the text and created the layout for their individual newspaper spreads using InDesign and Photoshop. At the end of the program, the class presented its newspaper at the Santa Reparata International School of Art’s student showcase.

The overall experience gave Del Cid a chance to learn while experiencing a new culture and country.

“Just being in a new place and seeing how people, how their lives are different from ours, and meeting new people, that was just my favorite part because it felt like something exciting and new,” she said.

Seeing the art she had learned about in class in person was mind-blowing for her as an artist. As an example, she pointed to Brunelleschi’s Dome, the iconic architectural feature of the Florence Cathedral.

“To see it in person, it made me realize these things that I’m learning, it’s not just through a screen, it’s actually a real thing,” Del Cid said.

The experience made Del Cid step out of her comfort zone and

Read More

Carbon: Google programming language as a C++ successor

Carbon, the latest programming language to be built within Google, was unveiled today as an experimental successor to C++.

Over the years, Google has created a few programming languages, some of which have become more popular and prominent than others. For example, Golang (or simply Go) was created for the purpose of improving the development of servers and distributed systems and has since been adopted by the public. Meanwhile, the Dart programming language, originally intended as something of an alternative to JavaScript, didn’t reach mainstream popularity until the release of Flutter.

Today, at the Cpp North convention in Toronto, as shared by Conor Hoekstra who was in attendance and documented the slides, Googler Chandler Carruth shared the vision for a new programming language called Carbon. To set the scene, Carruth showed how many of today’s most popular programming languages ​​have successors that allow developers to be rapidly productive and also take advantage of modern language design.

Android developers well know that Kotlin serves as a successor to Java, just as iOS developers know Swift is the successor to Objective-C. TypeScript, from Microsoft, has thoroughly enhanced JavaScript, while remaining comfortable to use and able to be “transpiled” back to JavaScript. C++, which sees a significant amount of use within Google, is similarly a successor of sorts to the original C programming language.

While some may suggest that Rust, originally a Mozilla project that has since grown to have a significant public following, is a successor to C++, Carruth wonders if the analogy still follows. While Rust is undeniably a great language to start a new project in, it doesn’t have the same “bi-directional interoperability” of something like Java & Kotlin, making it difficult to steadily migrate.

If Rust works for you today, you should use it. But moving a C++ ecosystem to Rust is hard.

To that end, while Carbon has many of the same goals as Rust, such as helping developers to create “performance-critical software,” Carbon is also intended to be fully interoperable with existing C++ code. Additionally, the goal is to make migrating from C++ to Carbon as easy as possible, if desired.

As for why a C++ developer may want to consider introducing Carbon to their codebase, Carruth shared quite a few highlights of the language on stage.

  • Introducer keywords and a simple grammar
  • Function input parameters are readonly values
  • Pointers provide indirect access & mutation
  • Use expressions to name types
  • The package is the root namespace
  • Import APIs through their package name
  • Explicit object parameter declares a method
  • single inheritance; classes are final by default
  • Powerful, definition-checked generics
  • Types explicitly implement interfaces

Beyond the features of the language itself, the Carbon team drew attention to the development process that will shape Carbon’s future. The project’s code is hosted publicly on GitHub and is open for pull requests, while Carbon’s culture is outlined to be accessible and inclusive for employees of companies and private individuals, alike.

That said, one aspect of the Carbon programming language that’s not

Read More

Check out these mini tech gadgets that make life on the go easier

Do you constantly juggle work and other tasks on the go? Lighten the load—literally—with these mini tech gadgets. Discover them in the blog.

Maybe you’re a busy student running between classes. Or perhaps you work remotely and frequently set up shop anywhere. If you spend ample time out and about each day, then this roundup is for you. We’re highlighting our favorite mini tech gadgets that make life on the go easier.

Related: Problem-solving gadgets and accessories you need in your life

If you need more than just a tablet to get tasks done when away from your typical workspace, consider the Microsoft Surface Laptop Go 2. It’s travel-friendly at just 2.48 pounds, but it offers a high-speed processor and Windows 11.

Then, the Garmin Venu 2 Plus keeps your command center on your wrist, letting you take calls, respond to text messages, view alerts, monitor your health, and more without opening your phone.

Stay organized, efficient, and comfortable on the go with these cool mini tech gadgets.

1. The ZMI PowerPack 10K charges iPhones, Fitbits, Bluetooth headphones, iPads, and more when you’re far from an electrical outlet.

ZMI PowerPack 10K in use in an office

Never run out of batteries while working from a coffee shop when you have the ZMI PowerPack 10K. It boasts a massive 10,000 mAh battery and works with many devices.

Get it for $19.99 on Amazon.

2. The Microsoft Surface Laptop Go 2 makes work on the go easier with its 12.4″ touchscreen and fast 11th-Gen Intel Core processor.

A person gaming on the Microsoft Surface Laptop Go 2

Travel light and still get serious work done with the Microsoft Surface Laptop Go 2. It weighs just 2.48 pounds and has the smallest touchscreen of all the Surface laptops. Plus, Windows 11, Microsoft 365, and the 11th Gen Intel Processor keep you efficient and collaborative.

Get it for $599.99 on the official website.

3. The AOHI Magcube 120W desktop charger fits in your palm, charges 2 laptops at the same time, and offers up to 100-Watt PD fast-charging.

The AOHI Magcube 120W charging devices

The best portable chargers these days rely on GaN technology, just like the AOHI Magcube 120W desktop charger. This handy little gadget packs a punch: it can fast-charge a MacBook Pro 16″ from 0% to 45% in just half an hour, making it one of our favorite mini tech gadgets.

Get it for $89.99 on the official website.

4. The Tribit StormBox Micro 2 portable speaker is pocket size and charges your devices while playing music when you’re out.

Tribit StormBox Micro 2 portable speaker in use

Keep a speaker and a charger in your back pocket: the Tribit StormBox Micro 2 portable speaker. It offers a built-in USB-C charging port and plays music with a range of up to 120 feet.

Get it for $59.99 on the official website.

5. The nuka eternal stationery includes an app-powered rewritable notebook and metal pencil. It keeps your handwritten digital

Read More