hmillerbakewell / partitioned-quantum-cellular-automata Goto Github PK
View Code? Open in Web Editor NEWCreate circuits in the style of partitioned quantum cellular automata
License: MIT License
Create circuits in the style of partitioned quantum cellular automata
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.