Giter Site home page Giter Site logo

partitioned-quantum-cellular-automata's People

Contributors

hmillerbakewell avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

partitioned-quantum-cellular-automata's Issues

next(automaton) call fails with latest qiskit-terra version

Hi Hector,

I've recently discover the pqca package and try to use it through the pqca Tutorial (https://github.com/iccmr-quantum/PQCA_Tutorial).
The T01-getting_started tutorial works fine till the next(automaton) call.

I found that automaton.py use the deprecated add() method to combine QuantumCircuit

So, I try the following change using the compose() method and it works fine :

Replace :
@Property
def combined_circuit(self) -> qiskit.QuantumCircuit:
"""Combine preparation and update circuit."""
return self.preparation_circuit + self.update_circuit
By :

@Property
def combined_circuit(self) -> qiskit.QuantumCircuit:
"""Combine preparation and update circuit."""
return self.preparation_circuit.compose(self.update_circuit)

Hope this may help.

here are the results of the pip show command for the python packages I use :

(OSCQasm) $ pip show qiskit
Name: qiskit
Version: 0.41.1
Summary: Software for developing quantum computing programs
Home-page: https://qiskit.org/
Author: Qiskit Development Team
Author-email: [email protected]
License: Apache 2.0
Location: /Users/PLC/DEV/OSC-Qasm/OSCQasm/lib/python3.11/site-packages
Requires: qiskit-aer, qiskit-ibmq-provider, qiskit-terra
Required-by: pqca

(OSCQasm) $ pip show qiskit-terra
Name: qiskit-terra
Version: 0.23.2
Summary: Software for developing quantum computing programs
Home-page: https://github.com/Qiskit/qiskit-terra
Author: Qiskit Development Team
Author-email: [email protected]
License: Apache 2.0
Location: /Users/PLC/DEV/OSC-Qasm/OSCQasm/lib/python3.11/site-packages
Requires: dill, numpy, ply, psutil, python-dateutil, rustworkx, scipy, stevedore, symengine, sympy
Required-by: qiskit, qiskit-aer, qiskit-ibmq-provider

(OSCQasm) $ pip show pqca
Name: pqca
Version: 1.0.2
Summary: Construct and simulate partitioned quantum cellular automata
Home-page: https://github.com/hmillerbakewell/partitioned-quantum-cellular-automata
Author: Hector Miller-Bakewell
Author-email: [email protected]
License: UNKNOWN
Location: /Users/PLC/DEV/OSC-Qasm/OSCQasm/lib/python3.11/site-packages
Requires: qiskit
Required-by:

Best Regards,

Pascal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.