Open access peer-reviewed chapter - ONLINE FIRST

How Much Is the Cost of Implementing Arithmetic on a Quantum Computer?

Written By

Filippo Ghiglieno, Paulo Henrique Dias Ferreira, Vinicius Tribuzi and Olavo Leopoldino da Silva Filho

Reviewed: 26 April 2024 Published: 27 May 2024

DOI: 10.5772/intechopen.115048

Systems Engineering - Design, Analysis, Programming, and Maintenance of Complex Systems IntechOpen
Systems Engineering - Design, Analysis, Programming, and Maintena... Edited by Germano Lambert-Torres

From the Edited Volume

Systems Engineering - Design, Analysis, Programming, and Maintenance of Complex Systems [Working Title]

Prof. Germano Lambert-Torres, Dr. Gilberto Capistrano Cunha de Andrade and Dr. Cláudio Inácio de Almeida Costa

Chapter metrics overview

20 Chapter Downloads

View Full Metrics

Abstract

This book chapter explores the transition from classical to quantum computing, emphasizing the capabilities and challenges associated with quantum bits (qubits). Unlike classical computing, where the information is represented as binary digits, known as bits, quantum bits, or qubits, although they share similarities with classical bits, such as 0 and 1 states, they operate in superposition, simultaneously encompassing both 0 and 1 states. This unique property allows quantum computers to perform certain computations, traditionally done sequentially on classical computers, more efficiently, in a single operation with a qubit. Through comparative analysis, we investigate the feasibility and costs of integrating quantum computing into daily applications, examining the potential for personal quantum computing devices. Our findings highlight significant advancements in computational speed of routine mathematical operations, although not yet economically viable or competitive in the current market. Future directions question the market readiness for quantum computing, suggesting a pivotal shift towards cloud-based quantum computing resources.

Keywords

  • classical logic and arithmetic
  • quantum logic and quantum arithmetic
  • electronic hardware
  • quantum hardware
  • scalability/adaptability

1. Introduction

“To Rachele and Mattia, the next users of this amazing technology.”

Quantum mechanics came as a thunderstorm to the fundamental pillars in our classical understanding of the physical realm. Since its inception in the 1920s, it has enriched our comprehension significantly, marked by pioneering contributions from scientists like Niels Bohr, Werner Heisenberg, and Erwin Schrödinger, and has led to technological innovations that have become cornerstones of modern civilization. The theory has revolutionized the electronics and the information science with the transistor, the backbone of contemporary electronics [1, 2], and the advent of optical communication through lasers [3] are among the myriad contributions of quantum mechanics to technology and information science. Furthermore, recent advancements in quantum chemistry have facilitated the creation of novel materials [4] and pharmaceuticals [5], underscoring the theory’s broad impact. Today, quantum technologies contribute significantly to the Gross Domestic Product (GDP) of numerous countries, embodying a substantial sector within the global economy [6]. Nonetheless, similar to the slow assimilation of Maxwell’s equations in the nineteenth century, which required a century to fully grasp and catalyze technological advancements, it is to expect that the recent developments in experimental techniques for generating and controlling quantum states will lay the foundations for a potential second quantum revolution. This resurgence holds the promise of reshaping societal and economic landscapes once more. Quantum mechanics, initially a purely theoretical framework, underwent a transformative journey spanning over half a century. It transitioned from a mere physical theory to a cornerstone of our understanding and manipulation of information—the very foundation of modern information technology. The old Shannon’s paradigm according to which the purely mathematical bit can be implemented in the physical word has now been replaced by Landauer’s view, in which the information cannot be detached from its physical embodiment [7]. In 1982, the so-called “no-cloning theorem” confirmed new rules must be considered when information was quantically encoded [8]. In the same year, R. Feynman clearly predicted the quantum computer supremacy on the classical machines [9], which highlights the unique and transformative nature of quantum information processing. Subsequent milestones, including the first establishment of a quantum cryptography protocol published by Bennett and Brassard [10] in 1984, which allowed the creation of symmetric keys with perfect secrecy between the end points of a channel able to transmit quantum correlations, and the first, albeit primitive, implementation in 1989 [11] over a 25-cm free space, have added credibility to its claim of being a viable technology. This milestone effectively inaugurated the domain of quantum key distribution (QKD), marking a pivotal moment in its practical application, further exemplifying quantum mechanics’ profound impact on communication security and computational theory. Nevertheless, the no-cloning principle, which gives the security of quantum key distribution (QKD) and quantum cryptography, also imposes restrictions on the faithful amplification of quantum signals. This limitation ultimately constrains the maximum achievable distance of QKD transmissions. It’s worth noting that while the no-cloning principle prohibits the direct copying of quantum states, it does not rule out the potential for quantum repeaters. Quantum repeaters are devices capable of establishing quantum correlations over vast distances without resorting to state replication. Therefore, they offer a promising solution to overcome the inherent limitations of QKD, enabling it to transcend physical constraints such as distance and losses [12], overcoming its inherent limitations. The advent of quantum cryptography gained significant traction in 1994, notably propelled by Peter Shor’s groundbreaking quantum algorithm [13]. This pivotal moment made computer scientists and cryptographers worldwide realize the potential threat posed by quantum computers to existing public key ciphers and cryptographic systems. It became evident that if quantum computers were successfully developed, they could potentially compromise the security of current cryptographic protocols. The main question became, after the development of quantum computers, how long it would take before the rise of cryptographic vulnerabilities. While a quantum computer boasting 53 qubits has, in mere minutes, tackled computations that traditional computers would need millennia to solve [14], quantum key distribution systems are already in a commercial stage and many companies and governments have invested heavily in researching quantum information technologies, which reflect the rapid progression and application potential of quantum technologies. Moreover, as we stand on the brink of a new technological era, the contributions of quantum mechanics to sensing, metrology, and beyond continue to expand the horizons of what is scientifically and practically achievable. Particularly, integrating quantum computers into daily applications notably involves leveraging quantum and reversible arithmetic techniques, advancing beyond traditional methods. This encompasses employing Draper’s pioneering work on Quantum Fourier Transform (QFT)-based arithmetic [15], a critical foundation for quantum computation, alongside exploring modern advancements like ripple-array approaches [16]. These methodologies are essential for harnessing the unique computational capabilities of quantum systems, enabling more efficient processing and problem-solving strategies that significantly outperform classical computing paradigms in specific tasks. Despite existing challenges that must be addressed for its broader application, the impact of quantum technologies on our future technological landscape is undeniable. These advancements are poised to significantly influence various sectors, underscoring their emerging critical role in shaping the next technological era [17, 18]. While the potential for considerably faster computations is evident [19], the practical implications of integrating quantum hardware into everyday computing pose critical questions regarding cost-effectiveness and energy efficiency. This requires a shift in inquiry towards a more targeted analysis: “What is the comparative cost analysis between implementing quantum arithmetic operations versus classical operations in terms of computational resources and energy consumption?” This refined question underscores the need to evaluate the practical implications of quantum computing, focusing on the balance between its revolutionary computational speed and the logistical and economic challenges of adopting quantum hardware for everyday computing.

Advertisement

2. Classical and quantum arithmetic

2.1 Adding binary numbers

Binary addition operates on a straightforward principle, mirroring the conventional arithmetic process but within the binary numeral system. This approach ensures that adding two binary numbers adheres to specific rules, yielding results comparable to those of traditional arithmetic, albeit expressed in binary form. This foundational concept underscores the logical consistency between binary and standard arithmetic operations. By doing binary addition, two numbers in their binary representation are added to get the resultant number. This operation is typically performed using an adder, a fundamental component within the arithmetic logic unit. In the arithmetic logic unit, the adder serves as the foundational element for various arithmetic functions, including subtraction, multiplication, and division [20]. Algorithms for these operations are intricately linked to the principles of binary addition. The rules dictating binary addition are as follows.

2.1.1 The rules

We want to add two four bit numbers A3A2A1A0 and B3B2B1B0. We have to work through each column from the right to the left. In the following example, the first number is 1001 (A3=1, A2=0, A1=0, A0=1) and the second one is 1111 (B3=1, B2=1, B1=1, B0=1). Starting with the rightmost bit, we first have to calculate 1 A0 plus 1 B0, and 1 C1 carries out to the next column.

Step 1 (S1):

1001+1111¯011001+1111¯0

Now, the second step consists in calculating the second column: 0 A1 plus 1 B1 and adding finally the carry 1 C1. Again 1 carries out to the next column C2. We advance further, in the third column we have 0 A2 plus 1 B2 and the carry 1 C2. Again 0 is the result with the carry 1 C3.

Step 2 (S2):

111001+1111¯001111001+1111¯000

In the last step, we have to sum 1 A3 and 1 B3 adding the carry 1 C3. The result is 1000 with one more carry 1 C4 for the next column.

Step 3 (S3):

11111001+1111¯100011111001+111111000¯

Formally, we can summarize the sum protocol in the following way:

C4C3C2C1A3A2A1A0+B3B2B1B0¯C4S3S2S1S0

2.1.2 The half adder: the circuit

We begin building a logical circuit that adds two bits following the added rules. We have four situations to face:

0+0Sum0¯Carry01+0Sum1¯Carry0
0+1Sum1¯Carry01+1Sum0¯Carry1

We name the input bits A and B, the sum S, and the carry bit C. The four situations can be summarized in a so-called truth table (see Table 1). The sum can be implemented with a logical XOR. The carry can be expressed with a logical AND.

ABSC
0000
1010
0110
1101

Table 1.

Truth table for the logical half adder.

Figure 1 shows how the circuit, so-called half adder, works in practice.

Figure 1.

Logical circuit for a half adder (electronic circuit simulation by Brian studio): (a) A = 0, B = 0; (b) A = 0, B = 1; (c) A = 1, B = 0; (d) A = 1, B = 1.

2.1.3 The full adder: the circuit

For the next bits, the logical circuit is more complex, it is not enough for a half adder. We have to add them along with whatever was carried in. Since this allows for a carry, it is called full adder. We call the two input bits A and B. The bit we carry is Cin. We build again the truth table for understanding the gates we need to implement the logical operation:

From the truth table (Table 2), we can see that the carry out is 1 when A and B are 1, or when Cin=1 and AB=1:

ABCinSCout
00000
00110
10010
10101
01010
01101
11001
11111

Table 2.

Truth table for the logical full adder.

Cout=AB+CinABE1

From the truth table, we also notice that the sum S is 1, whenever one of the inputs (Figure 2) A, B, or Cin is 1, or when all three are 1. This is equivalent to XOR of all the three bits:

Figure 2.

Full adder circuit diagram.

S=ABCinE2

It is now evident that to sum two four bit numbers, the circuit must have one half adder and three full adder. Figure 3 shows how the circuit works in practice.

Figure 3.

Logical circuit for a full adder (electronic circuit simulation by Brian studio): (a) A = 0, B = 0; (b) A = 0, B = 1; (c) A = 1, B = 0; (d) A = 1, B = 1.

Advertisement

3. Reversible and irreversible processes in physics

In the Resnick, Halliday, and Krane book [21], we can read this definition:

…In a reversible process, we make a small change in a system and its environment; by reversing that change, the system and its environment will return to their original conditions.

The definitions in other introductory books are not much different or clearer [22, 23]. In thermodynamics, the principle of reversibility encompasses the concept that certain processes are capable of being inverted, ensuring that a system can revert to its original state without exerting any lasting influence on other systems that have interacted with it (an ideal example of this process would be the singular swing of a frictionless pendulum). Irreversibility emerges because of the intricate interactions between a given system and other concurrent processes. Irreversible processes inherently involve dissipative phenomena, such as heat transfer across a finite temperature gradient or the manifestation of irreversible chemical reactions. In essence, the dichotomy between reversible and irreversible processes encapsulates the intricate dance of thermodynamic principles within the intricate choreography of the physical world. On the contrary, quantum mechanics and quantum circuits inherently embody reversibility, a consequence of the unitarity principle intrinsic to quantum mechanics. Based on the strict reversibility of the laws of microphysics, Landauer [24], Bennett [25], Priese [26], Fredkin and Toffoli [27], Feynman [28], and others envisioned a reversible computer that cannot allow any ambiguity in backward steps of a calculation. In this perspective, operations described by unitary operators, preserving purity and information, define the reversible transformations in quantum circuits.

3.1 Reversible gate

A reversible gate is a type of logic gate that allows the original input to be derived from its output. For instance, the NOT gate is an example of a reversible gate. Based on the truth table, the outputs of a NOT gate are distinct,

enabling the operation to be reversed. Hence, if the output from the gate is 1, the input must have been 0, and the reverse is also true. The reversibility of the NOT gate stems from the fact that the input can be always unequivocally determined (Table 3).

AA¯
01
10

Table 3.

Truth table for the NOT gate.

3.2 Irreversible gate

An irreversible gate is the opposite of a reversible gate. Given the output of the gate, we cannot determine unequivocally what the input is. An example is the AND gate (Table 4).

ABAB
000
100
010
111

Table 4.

Truth table for the AND gate.

From the truth table, the output of the AND gate being 1 clearly indicates that both inputs are 1. However, if the output is 0, it does not uniquely specify the inputs, which could be 00, 01, or 10. Thus, from the output alone, the inputs to the AND gate cannot typically be determined, making it an irreversible gate. Note that the AND gate accepts two input bits, allowing for four possible combinations (00, 10, 01, and 11), but produces only one output bit, which can be either 0 or 1. The reduction in possible output states compared to input states means some information is lost, making it impossible to reliably deduce the inputs from the output. Moreover, in situations where there are more input bits than output bits, the circuit remains irreversible because some output scenarios do not correspond uniquely to specific inputs. Consider, for example, the following truth table (Table 5).

AinBoutCout
001
110

Table 5.

Truth table for an irreversible gate.

If both outputs are 0, the input remains unspecified according to the truth table; hence, its inverse is not fully determined. Therefore, a logic gate must have at least as many input bits as output bits to be reversible [29]. This is a necessary condition but not always sufficient. For instance, the gate described below is reversible (Table 6).

ABCD
0011
1010
0101
1100

Table 6.

Truth table for reversible gate.

The gate is reversible because, given the output, it is always possible to determine the input. No information is lost since we can always recover the inputs from the outputs. Moreover, we have just seen, the AND gate is not reversible.

3.2.1 Making reversible gates irreversible

We consider a gate with inputs A and B and outputs f(A, B), which is a function that output 0 or 1 depends on the inputs A and B. For example, for AND gate, the function would map f00=0, f01=0, f10=0, and f11=1. We can make it reversible with XORing output with a third input C (see Table 7).

ABCABfABC
00000f000
00100f¯001
01001f010
01101f¯011
10010f100
10110f¯101
11011f111
11111f¯110

Table 7.

Truth table for the XORing irreversible gate.

In the rightmost column of the truth table, we used fAB0=fAB and fAB1=f¯AB. So this implements the original gate when C = 0. But the overall circuit is reversible. In the output, every permutation of A and B shows up twice, once with f(A, B) and once with f¯AB, ensuring that the outputs are unique [30]. The technique can be generalized several ways. Figure 4 shows how to implement the logical circuit for a generic two input ports/one output logical gate.

Figure 4.

XORing the GATE.

Advertisement

4. Quantum adder

4.1 Qubit

A quantum bit, often referred to as a qubit, shares similarities with and differs from classical bits. Like its classical counterpart, a qubit can assume either of the two values, 0 or 1. In the language of quantum physics, using Dirac notation, these states are represented by the kets:

0=101=01E3

A qubit possesses the ability to store both classical and quantum information concurrently, a phenomenon called quantum superposition. Analogous to classical bits, where the number of states increases exponentially with the number of bits (e.g., 8 bits allowing representation of integers from 0 to 281), qubits follow a similar pattern. Still, with 8 qubits, it is possible to simultaneously encode all integers within the range of 0 to 281. Consequently, the memory capacity of a quantum computer grows exponentially with the number of qubits. This exponential growth implies that the number of bits required to represent a set of qubits also increases exponentially with the set length. A qubit in superposition can be expressed as a linear combination of computational basis states, where an arbitrary qubit ψ is defined as α2+β2=1. The numbers α and β, known as the probability amplitudes, weigh the probability of measuring a basis state. r. Those are complex numbers with the restriction of α2+β2=1.

4.2 Quantum gate: CNOT and Toffoli gate

Quantum gates act on qubits like logic gates act on bits. The controlled-NOT gate or CNOT inverts the right qubit if the qubit is 1:

CNOT00=00E4
CNOT01=01E5
CNOT10=11E6
CNOT11=10E7

In this arrangement, the qubit on the left is known as the control qubit, and the qubit on the right is termed the target qubit. It is important to note that the control qubit remains unchanged by the CNOT operation, while the target qubit is transformed into the XOR of the input values:

CNOTab=aabE8

Thus, the CNOT gate is a quantum XOR gate. We can implement the sum using two control not, the second CNOT turns the previous in:

CNOTcCNOTab=caabcE9

This quantum circuit can implement the quantum sum [30]. It is clear that due to the reversibility in quantum computing, we have to pay for the quantization by including one more qubit at the input stage (the ancilla qubit) in comparison to the bits in the classical circuit.

The Toffoli gate is a three-qubit gate in quantum computing, also called Controlled-Controlled-NOT gate.

CCNOT000=001E10
CCNOT001=001E11
CCNOT010=010E12
CCNOT011=011E13
CCNOT100=100E14
CCNOT101=101E15
CCNOT110=111E16
CCNOT111=110E17
CCNOTcba=ababcE18

Since the Toffoli gate is a quantum universal gate, quantum computers can efficiently convert classical algorithm utilizing Toffoli gates. This allows to create an AND of A and B, XORed with C:

CCNOTcab=ababcE19
CNOTab=aabE20

4.3 Quantum adder implemented on the IBM platform

Quantum computing is emerging from the research in the laboratory onto the marketplace. Numerous enterprises are in the process of crafting prototype quantum processors. These early stage quantum processors, termed noise-intermediate-scale quantum (NISQ) devices, are characterized by their susceptibility to decoherence, making them not fault-tolerant devices, and they are of intermediate-scale nature since they feature a moderate quantity of qubits. Several companies have opened access to their preliminary quantum processors for experimental purposes. Pioneering this accessibility, IBM was the foremost to provide cloud-based access to their quantum processors via the internet. IBM’s quantum computing resources, including their smaller quantum processors, are accessible to the public via their platform (https://quantum-computing.ibm.com), while larger and more advanced processors are offered through commercial access. This arrangement facilitates a range of engagement with quantum computing, from educational to research-oriented applications. The Circuit Composer on the website provides a drag-and-drop interface for the programming quantum circuits. Using the Circuit Composer, it is possible to create the circuits presented in the previous subsection, as shown in Figure 5. We note that q[0], q[1], and q[2] are the three qubit to sum, q[0] is the carry in. The three not gates initialize to 1 the input values. q[3] and q[4] are the ancilla qubits for making reversible, respectively, q[1] q[2] and q[0] q[1] q[2]. The two Toffoli gates implement the logical AND between q[1], q[2] (q[1]q[2]) and between q[0], q[1] q[2] (q[0][q[1] q[2]]) with the support of the two ancilla qubits q[5] and q[6]. The last qubit q[7] produces Cout through an anti-Toffoli gate, implementing an OR gate between q[1]q[2] and q0q1q2=Cout.

Figure 5.

Quantum adder on the IBM platform.

Advertisement

5. Results and discussion

Using the Circuit Composer, shown in Figure 5, it is possible to create the circuits presented in the previous subsection. Where q[0], q[1], and q[2] are the three qubits to sum, q[0] is the carry in. The three NOT gates initialize the input values to 1. On January 4th, 2024, we ran the quantum circuit 1024 times on IBM’s IBM_Brisbane 13 processor, with 127 qubits available. The following table (see Table 8) summarizes the quasi-probability distribution for 12 outputs after 1024 trials in 17 seconds (in queue: 2 h 26 m 30.9 s) when q[0] = 1, q[1] = 1, q[2] = 1. Quasi-probability distributions are distinct from standard probability distributions as they permit negative values, yet their total must still equate to 1, akin to regular probabilities. This characteristic often emerges in the context of error mitigation strategies, illustrating the unique aspects of quantum computing calculations. Negative quasi-probabilities may appear when using error mitigation techniques [31]. The implemented protocol [32] excels in capturing correlated noise efficiently. It is designed to scale effectively for deployment in large quantum devices and serves as a demonstration of the concept of probabilistic error cancelation (PEC) on a superconducting quantum processor. PEC, as showcased in this implementation, is a technique adept at reversing well-characterized noise channels, leading to accurate and unbiased estimates of physical observables. The table shows the result q[4] = S = 1 and q7=Cout=1 with 65% confidence, while q[4] = S = 1 and q7=Cout=0 shows a quasi-probability next to the 18%. The IBM platform offers the possibility to run quantum circuit on an advanced quantum cloud-based computer simulator. We ran the same circuit on the ibmq_qsam_simulator, performing the simulation on a classic computer that resides on the cloud and simulates a 32-qubit computer. Figure 6 indicates the result q[4] = S = 1 and q7=Cout=1 with 100% confidence. The quantum adder circuit exhibits consistent results between classical and quantum hardware; however, the intricacy of the circuit renders qubit q7=Cout susceptible to noise, with a frequency of 18%. In a subsequent experiment on the same day, the circuit was rerun with altered input values (q[0] = 1, q[1] = 0, q[2] = 1) on the identical platform and quantum hardware. Following 1024 trials and 18 seconds of utilizing the ibm_brisbane device, the outcomes were as follows: q[4] = S = 0 and q7=Cout=1 with a quasi-probability of 0.426898811824693, and q[4] = S = 1 and q7=Cout=1 with a quasi-probability of 0.341177111084729. This last result underlines the importance of noise reduction for the next generation of quantum computers and the need for the introduction of error-correction protocols in famous complex circuits like those employed in Shor’s algorithm or Grover’s algorithm [33]. Notably, the simulation using the ibmq_qsam_simulator classical cloud computer yielded q[4] = S = 0 and q7=Cout=1 with a quasi-probability of 100% (see Figure 6). We executed a for loop 1024 times to implement the same logical classical operation consistently on a laptop with Intel(R) Core(TM) i7-8650U CPU@ 1.90 GHz-2.11 GHz and 16.0 GB RAM. The program in the MATLAB environment (@Matworks) when A1=1A0=1 and Cin=0 outputs the correct result with probability 100% in less than 1 millisecond (in average). In present-day classical computers, the probability of encountering errors is exceedingly low, often reported at the scale of p1018. In contrast, for cutting-edge quantum computers, the error probability is notably higher, typically ranging around 102 or, under optimal conditions, 103 [34]. The process of addressing errors in classical bit addition revolves around encoding redundant information from one bit across multiple bits. This ensures that if an error occurs in one of the redundant bits, the encoded data remain intact. A basic illustration of this concept involves a three-bit code employing a majority voting mechanism. To retrieve the encoded data, all three bits are measured, and the result is determined by the majority vote among them. Encoded information is determined through a majority vote among three bits. For instance, if a distortion changes the third bit in a sequence, transforming 111 to 110, the predominance of 1 s in the sequence 110 suggests the original encoded information was a 1. This method underscores the resilience of error-correction codes in maintaining data integrity despite errors (Table 8) [35].

Figure 6.

Quantum adder quasi-probability histogram on the IBM QSAM (classical quantum) platform when q[0] = 1, q[1] = 1, q[2] = 1.

q[7]q[5]q[2]q[1]q[0]Frequency
100110.005963903511760564
101010.005789115501746171
101100.007055794279213567
101110.13005895397294628
11101−0.003797515073072619
11110−0.01562920614909066
111110.6528051438929247
000110.0004680269228594772
00110−0.0007243258136245517
001110.037259824909123135
01110−0.0024218131094713726
011110.18317209715468513

Table 8.

Quasi-probability for the quantum adder implemented on the IBM platform.

5.1 Error correction

Correcting errors on quantum bits is indeed a more intricate challenge. This complexity posed a significant challenge for researchers in the early stages of quantum computing. The nuanced nature of quantum information and the susceptibility of qubits to environmental factors make error correction a substantial and ongoing focus of research in the field, especially for large and complex circuits. Overcoming these challenges is crucial for the development of reliable and scalable quantum computing technologies. The major obstacles thought to prevent quantum error are:

  1. the no-cloning theorem [8];

  2. measuring a quantum state causes it to collapse into an eigenstate of the measured observable [36];

  3. within classical computing, a singular error type exists, the bit flipping, which toggles the bit between 0 and 1. In contrast, a quantum bit faces a multitude of potential errors, primarily due to various phase shifts, highlighting the complexity of quantum error correction [37].

In a bit flip channel, with three qubits it is possible to encode and protect the information, but it increases the hardware resources necessary for implementing the quantum circuit. To protect the information from the flip errors in a bit flip channel (the X gate), it is possible to encode the qubit using three qubits, not cloning, but applying the CNOT gate:

ψ=α0+β1α000+β111=ψ3E21

If we perform the parity measurement both on qubits 1,2 and 2,3, i.e., measure the product σz1σz2 and the product σz1σz2 (where σzi is the Z 2 x 2 Pauli matrix acting on the qubit i):

σz1σz2ψ3,E22
σz2σz3ψ3,E23

the carried information is not changed, the quantum state ψ3 just gains a global phase factor marking a possible flip. In this case, applying an X gate to this qubit (σx3 2 x 2 Pauli matrix), it flips back to the original state. The protocol works also when the rotation is not a flip (X gate), but an arbitrary rotation ϑ (RX gate on the IBM platform). In quantum calculations (or computing), the role of stabilizers in error correction, as above, can be elucidated by examining how a quantum state ψ interacts with a unitary operator U. Specifically, if the application of U to ψ results in no change to the state Uψ=ψ, then ψ is considered to be stabilized by U, indicating a foundational aspect of understanding error-correction codes through stabilizers. Implementing then is crucial in minimizing the likelihood of a single-qubit error propagating into a genuine error within an encoded single-logical-qubit state, which is composed of multiple physical qubits. However, this initial step towards achieving error resilience in quantum computing comes at a cost. The incorporation of error correction inevitably escalates circuit complexity and adds to the computational overhead. Moving beyond this challenge, the realization of fault-tolerant quantum computing necessitates the development of robust schemes and allocation of resources for executing logical operations and measurements on logical qubits in a manner that is inherently resilient to errors. While delving into the intricacies of achieving fault tolerance is beyond the scope of this chapter, it is indeed possible and represents a pivotal aspect of advancing quantum computing capabilities.

Advertisement

6. Conclusions

Quantum computation stands as a groundbreaking paradigm with the potential to significantly reduce complexity in mathematical problem-solving. Contemporary accessibility to quantum hardware through cloud architectures, as exemplified by platforms such as Quantum IBM on IBM and AWS on Amazon, presents varied pricing plans in terms of U.S. dollars per second. However, adhering to fundamental principles in quantum mechanics, quantum circuits inherently necessitate reversibility, leading to an augmented demand for basic resources (qubits). In this investigation, we explored the hardware cost implications of implementing a classical logical circuit, specifically the full adder, on an IBM quantum computer. In contrast to its classical counterpart, the quantum circuit demands six input qubits (three input values q[0],q[1],q[2] and three ancillas q[3],q[5],q[6]) and two output qubits (q[4] = S and q7=Cout), despite both circuits addressing a binary logic operation with three input bits (A0A1 and Cin) and two output bits (S and Cout). The classical logic circuit can be effortlessly executed on commonplace calculators or personal laptops, offering straightforward implementation, reliable results, and swift outputs within milliseconds for a thousand trials. While the classical logic circuit seamlessly executes on standard calculators or personal laptops, featuring a straightforward implementation, dependable results, and rapid outputs within milliseconds for a thousand trials, the quantum counterpart introduces additional complexity. The quantum circuit, despite its higher hardware demands, is subject to the distinctive principles of quantum mechanics, and its execution involves the utilization of ancillary qubits for specific functionalities. This disparity highlights the inherent distinctions between classical and quantum computing paradigms, underscoring the need for a nuanced consideration of resource requirements when transitioning from classical to quantum implementations of logical circuits. Nowadays, the most common and efficient business solution on the market is shared quantum hardware in cloud architecture, but subject to queuing delays. Results are obtained within seconds for a thousand trials, yet they are influenced by noise and temporal stability issues. In this perspective, for routine day-to-day mathematical operations, quantum calculators or laptops do not presently emerge as economically viable, reliable, scalable, user-friendly, or competitive products in the market. Future prospects may witness alternative platforms based on diverse quantum technology approaches, such as photonic or ion trap-based circuits, presenting compelling business models for personalized quantum products. At present, the considerable expense associated with superconducting quantum bits (at approximately $10,000 [38]) necessitates the introduction of quantum facilities into the market primarily in the form of shared resources accessible via the internet, adopting time-of-use plans priced in U.S. dollars per second.

Advertisement

Acknowledgments

The authors would like to gratefully acknowledge the financial support from FAPESP, Brazil (São Paulo Research Foundation – Processes number: CEPID 2013/00793-6, 2018/11283-7 and AUXPE 2013/21569-1), CAPES (Coordenação de Aperfeiçoamento de Pessoal de Nível Superior), CNPq (Conselho Nacional de Desenvolvimento Científico e Tecnológico) Brazil, Universidade Federal de São Carlos (UFSCar), and Instituto de Física (IF) at the University of Brasilia (UnB).

Advertisement

Conflict of interest

The authors declare no conflict of interest.

References

  1. 1. Bardeen J, Brattain WH. The transistor, a semi-conductor triode. Physics Review. 1947;74:230-231
  2. 2. Bardeen J. Surface states and rectification at a metal semiconductor contact. Physics Review. 1948;71:383-388
  3. 3. Maiman TH. Stimulated optical radiation in ruby. Nature. 1960;187(4736):494
  4. 4. Kl P, Barkoutsos F, Gkritsis J, Ollitrault PJ, Sokolov IO, Woerner S, et al. Quantum algorithm for alchemical optimization in material design. Chemical Science. 2021;12:4345-4352
  5. 5. Tautermann CS. Current and future challenges in modern drug discovery: Quantum mechanics in drug discovery. Method in Molecular Biology. 2020;2114:1-17
  6. 6. Deloitte Insights. Available from: https://www2.deloitte.com/us/en/insights/topics/innovation/-computing-business-applications.html [Accessed: Jan 01, 2024]
  7. 7. Landauer R. Information is physical. Physics Today. 1991;44(5):23-29
  8. 8. Wootters W, Zurek W. A single quantum cannot be cloned. Nature. 1982;299:802-803
  9. 9. Feynman RP. Simulating physics with computers. International Journal of Theoretical Physics. 1982;21(6):467-488
  10. 10. Brassard G, Bennett CH. Quantum cryptography: Public key distribution and coin tossing. Theoretical Computer Science. 2014;560(1):7-11
  11. 11. Bennett CH, Brassard G. The dawn of a new era for quantum cryptography: The experimental prototype is working! SIGACT News. 1989;20(4):78-80
  12. 12. Briegel HJ, Dür W, Cirac JI, Zoller P. Quantum repeaters: The role of imperfect local operations in quantum communication. Physical Review Letters. 1998;81(26):5932-5935
  13. 13. Shor PW. Algorithms for quantum computation: Discrete logarithms and factoring. In: Proceedings 35th Annual Symposium on Foundations of Computer Science, Santa Fe, NM, USA. 1994. pp. 124-134
  14. 14. Arute F, Arya K, Babbush R, et al. Quantum supremacy using a programmable superconducting processor. Nature. 2019;574:505-510
  15. 15. Draper TG. Addition on a quantum computer. arXiv/quant-ph/0008033. 2000
  16. 16. Wang F, Luo M, Li H, Qu Z, Wang X. Improved quantum ripple-carry addition circuit. Science China Information Sciences. 2016;59:042406
  17. 17. Corcoles AD, Kandala A, Javadi-Abhari A, Douglas T. Challenges and opportunities of near-term quantum computing systems. Proceedings of the IEEE Science. 2020;108(8):1338-1352
  18. 18. Hassija V, Chamola V, Saxena V, Chanana V, Parashari P, Mumtaz S, et al. Present landscape of quantum computing. IET Quantum Communication. 2020;1(2):42-48
  19. 19. Castelvecchi D. IBM releases first-ever 1,000-qubit quantum chip. Nature. 2023;624:238
  20. 20. Kann CW III. Digital circuit projects – an overview of digital circuits through implementing integrated circuits. 1st ed. LibreTexts; 2023. Available from: https://eng.libretexts.org/Bookshelves/ [Accessed: 26 Jan 01, 2024]
  21. 21. Resnick R, Hallyday D, Krane K. Physics. 5th ed. New York: Wiley; 2002
  22. 22. Young HD, Freedman RA, Ford AL. Sears and Zemansky’s University Physics. 11th ed. New York, USA: Addison-Wesley; 2004
  23. 23. Giancoli D. Physics for Scientists and Engineers. 3th ed. Upper Saddle River, New Jersey: Prentice Hall; 2000
  24. 24. Landauer RW. Irreversibility and heat generation in the computing process. IBM Journal of Research and Development. 1961;5(3):183-191
  25. 25. Bennet CH. Logical reversibility of computation. IBM Journal of Research and Development. 1973;17:183-191
  26. 26. Priese L. On a simple combinatorial structure sufficient for sublying nontrivial self-reproduction. Journal of Cybernetics. 1976;5:101-137
  27. 27. Fredkin E, Toffoli T. Conservative logic. International Journal of Theoretical Physics. 1982;21:219-253
  28. 28. Feynman R. Quantum mechanical computers. Optics News. 1985;11:11-20
  29. 29. Morita K. Theory of reversible computing. Monographs in Theoretical Computer Science. An EATCS series Springer Tokio Edition. 2017
  30. 30. Wong T. Introduction to Classical and Quantum Computing. Rooted Grove Edition. 1st ed. 21 Jan 2022
  31. 31. Berg LK, Minev Z, Kandala A, Temme K. Probabilistic error cancellation with sparse Pauli–Lindblad models on noisy quantum processors. Nature Physics. 1985;19:11-20
  32. 32. IBM blog. With fault tolerance the ultimate goal, error mitigation is the path that gets quantum computing to usefulness. Available from: https://research.ibm.com/blog/gammabar-for-quantum-advantage [Accessed: Feb. 05, 2024]
  33. 33. Grover LK. A fast quantum mechanical algorithm for database search. In: Proceedings of the Twenty Eighth Annual ACM Symposium on Theory of Computing Association for Computing Machinery, Philadelphia, Pennsylvania, USA. 1996. pp.212–219
  34. 34. Kockum AF, Soro A, et al. Lecture notes on quantum computing. arXiv/quant-ph/2311.08445v1. 2024
  35. 35. Glover N, Dudley T. Practical Error Correction Design for Engineers. 2th ed. CO, USA: Cirrus Logic; 2000
  36. 36. Cohen-Tannoudji C, Diu B, Laloë F. Quantum Mechanics: Basic Concepts, Tools, and Applications. 2nd ed. Vol. 1. Hoboken, NJ, USA: Wiley-VCH; 2009
  37. 37. Nielsen MA, Chuang IL. Quantum Computation and Quantum Information. 4th ed. Cambridge UK: Cambridge University Press; 2004
  38. 38. Koestier J. Million-qubit quantum computing? How SEEQC plans to scale quantum computers. Available from: https://johnkoetsier.com/quantum-computing-seeqc/ [Accessed: Feb 05, 2024]

Written By

Filippo Ghiglieno, Paulo Henrique Dias Ferreira, Vinicius Tribuzi and Olavo Leopoldino da Silva Filho

Reviewed: 26 April 2024 Published: 27 May 2024