7COM1078 Computational Algorithms and Paradigms Assignment

Assignment Help Other Subject
Reference no: EM132493907

7COM1078 Computational Algorithms and Paradigms - University of Hertfordshire

Problem 1

The Quantum Programming Paradigm has been in existence now for more than twenty years with quantum based languages based on the imperative, functional and concurrent approaches to solving problems

a) Compare and contrast the concept of information processing employing bits, cbits, qubits and logic gates for Turing and quantum Turing based machines.

b) The quantum teleportation protocol using EPR and classical channels is now an essential ingredient in the successful development of quantum based networks. Draw, with explanation, the circuit used in the teleportation protocol. The following code is taken from the quantum based LanQ program for the teleportation protocol. Explain what is meant by the given code indicating which part of the circuit the code relates to.

#library "library.libq"
..........
void bert(channelEnd[int] c1, qbit stateToTeleportOn) { int i;
i = recv(c1); if (i == 1) {
Sigma_z(stateToTeleportOn);
} else if (i == 2) { Sigma_x(stateToTeleportOn);
} else if (i == 3) { Sigma_x(stateToTeleportOn); Sigma_z(stateToTeleportOn);
}
dump_q(stateToTeleportOn);
}

c) What Qiskit code, if any, corresponds to the above LanQ code?

Problem 2

The functional paradigm has been described as one response to the challenge of developing alternative models to the imperative paradigm for dealing with different types of problem. Examples of such problems may be found in natural language processing, rule based systems, theorem proving and symbolic computation.

a) In your own words, explain the difference between a functional paradigm and an imperative paradigm. Include in your discussion, the concept of state, assignment, referential transparency, source, domain, target, codomain and range.
(7 Marks)

The foundation of the functional paradigm is the λ - calculus developed by Alonzo Church in 1941.

b) Give an example of a lambda expression for a function that gives the cube of a real number. Is your function total or partial? Justify your answer. Hence define a pure (or uninterpreted) λ - calculus in terms of identifier, application and abstraction. Include examples for each and a set of BNF grammar rules for the syntax of the pure λ - calculus.
(6 Marks)

c) Using an example of your own describe how either Lisp or Haskell could be used to accomplish a task incorporating conditionals and recursion.

d) What is the difference between static and dynamic type checking and what are the relative advantages and disadvantages

e) Let f(n) = 3n2 - 43n + 16. Show that f(n) = O(n4).

Reference no: EM132493907

Questions Cloud

Represent data will be influenced by many factors : The chart you select to represent your data will be influenced by many factors. Kirk (2016) has put each chart into the five main families below:
How could the situation be remedied using transfer price : The Electrical Division incurs variable costs of $100 in addition to the transfer price, How could the situation be remedied using transfer price
Record the purchase of the treasury stock : Record the issuance of the common stock during 20X7. Determine retained earnings on 12/31/X7. Record the purchase of the treasury stock.
Design a function in a program : Design a function in a program of your own and describe, in detail, the flow of program execution with respect to program flow.
7COM1078 Computational Algorithms and Paradigms Assignment : 7COM1078 Computational Algorithms and Paradigms Assignment help and solution, University of Hertfordshire - assessment writing service
Prepare journal entries for douglas company transactions : Prepare journal entries for each of the following transactions. Assume that the transactions occur in the order given. Douglas resells 1,000 shares for $36.
What is Kims ending partnership basis : Kim has a basis in her partnership interest of $13,000 when she receives a distribution from the partnership, What is Kims ending partnership basis
What is the cost today of purchasing the car : What is the cost today of leasing the car? (Do not round intermediate calculations and round your answer to 2 decimal places, e.g., 32.16.)
Record the payment of the preferred dividend on october : Record the payment of the preferred dividend on October 1. Record the declaration of the dividend on September 1. Record the issuance of the preferred stock.

Reviews

Write a Review

Other Subject Questions & Answers

  Psychological characteristics-terrorist organizations

Are there any common sociological and/or psychological characteristics of the people who are recruited into terrorist organizations?

  Prepare a video on Database and Data Warehouse

Please make sure your video is clear, understandable and rehearsed. You should not be using your commenting as the time to "come up with you ideas"

  Finding effective alternative dispute resolution

Analyze the methods of alternative dispute resolution and determine which is the most effective in resolving genuine disputes.

  Create presentation on curb bullying in adolescent with adhd

Prepapre a presentation about Curb Bullying In Adolescents with ADHD. Develop a presentation that articulates a convincing need for proposal you have developed.

  How organisations apply the strategic use of is

Prepare a paper that critically discusses how organisations apply the strategic use of IS/IT to achieve IS/IT-enabled innovation.

  Summarizing the Article and analyzing the paper

write 2 pages of summarizing and analyzing the paper. Article - LAW AND THE HISTORY OF CORPORATE RESPONSIBILITY: CORPORATE GOVERNANCE

  Girls brains and newborn babys brain

An unfortunate outcome of patient "H.M.'s" surgery was. What is true about a newborn baby's brain? Girls' brains

  Control model and public service approaches

How are these approaches used to justify police responses to crime fighting? Please provide examples

  Wireless networking could improve the company''s productivity

What can you tell the CIO about wireless standards that might convince him that now is the time to adopt wireless technology? What can you say to convince the CIO that wireless networking could improve the company's productivity?

  You will need to complete a report on a current is topic of

you will need to complete a report on a current is topic of your choice that is raising a lot of buzz or controversy.

  Explain the managerial tool of management

Discuss and Explain the managerial tool of management by walking around (MBWA) and its impact on creating a strategy ready culture.

  Address the different ethical conflicts ada might experience

Write a 2-3 page, APA style paper addressing the different ethical conflicts the ADA might experience from serving his time in prison and on probation.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd