Skip to content

Commit

Permalink
Replace qiskit-terra by qiskit
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneGasperini committed Nov 7, 2023
1 parent 282d87a commit 7717677
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ Qiskit Medium blog $\rightarrow$ :link:[link](https://medium.com/p/b6b4407fa705)


# Introduction
The `qiskit-symb` package is meant to be a Python tool to enable the symbolic evaluation of parametric quantum states and operators defined in [Qiskit](https:/Qiskit/qiskit-terra) by parameterized quantum circuits.
The `qiskit-symb` package is meant to be a Python tool to enable the symbolic evaluation of parametric quantum states and operators defined in [Qiskit](https:/Qiskit/qiskit) by parameterized quantum circuits.

A Parameterized Quantum Circuit (PQC) is a quantum circuit where we have at least one free parameter (e.g. a rotation angle $\theta$). PQCs are particularly relevant in Quantum Machine Learning (QML) models, where the values of these parameters can be learned during training to reach the desired output.

In particular, `qiskit-symb` can be used to create a symbolic representation of a parametric quantum statevector, density matrix, or unitary operator directly from the Qiskit quantum circuit. This has been achieved through the re-implementation of some basic classes defined in the [`qiskit/quantum_info/`](https:/Qiskit/qiskit-terra/tree/main/qiskit/quantum_info) module by using [sympy](https:/sympy/sympy) as a backend for symbolic expressions manipulation.
In particular, `qiskit-symb` can be used to create a symbolic representation of a parametric quantum statevector, density matrix, or unitary operator directly from the Qiskit quantum circuit. This has been achieved through the re-implementation of some basic classes defined in the [`qiskit/quantum_info/`](https:/Qiskit/qiskit/tree/main/qiskit/quantum_info) module by using [sympy](https:/sympy/sympy) as a backend for symbolic expressions manipulation.


# Installation
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
qiskit-terra
qiskit
pylint
pytest
pytest-cov
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ long_description = file: README.md
[options]
zip_safe = False
packages = find:
install_requires = qiskit-terra
install_requires = qiskit
python_requires = >=3.8
package_dir = =src

Expand Down
10 changes: 5 additions & 5 deletions tests/test_ctrl_parametric_gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_crz(phi, seed):
try:
circuit = get_random_controlled(base_gate=RZGate(par), seed=seed)
except TypeError:
# https:/Qiskit/qiskit-terra/issues/10311
# https:/Qiskit/qiskit/issues/10311
return
arr1 = Operator(circuit.assign_parameters([phi])).data
arr2 = symb_Operator(circuit).subs({par: phi}).to_numpy()
Expand Down Expand Up @@ -106,7 +106,7 @@ def test_crxx(theta, seed):
try:
circuit = get_random_controlled(base_gate=RXXGate(par), seed=seed)
except TypeError:
# https:/Qiskit/qiskit-terra/issues/10311
# https:/Qiskit/qiskit/issues/10311
return
arr1 = Operator(circuit.assign_parameters([theta])).data
arr2 = symb_Operator(circuit).subs({par: theta}).to_numpy()
Expand All @@ -122,7 +122,7 @@ def test_cryy(theta, seed):
try:
circuit = get_random_controlled(base_gate=RYYGate(par), seed=seed)
except TypeError:
# https:/Qiskit/qiskit-terra/issues/10311
# https:/Qiskit/qiskit/issues/10311
return
arr1 = Operator(circuit.assign_parameters([theta])).data
arr2 = symb_Operator(circuit).subs({par: theta}).to_numpy()
Expand All @@ -138,7 +138,7 @@ def test_crzz(theta, seed):
try:
circuit = get_random_controlled(base_gate=RZZGate(par), seed=seed)
except TypeError:
# https:/Qiskit/qiskit-terra/issues/10311
# https:/Qiskit/qiskit/issues/10311
return
arr1 = Operator(circuit.assign_parameters([theta])).data
arr2 = symb_Operator(circuit).subs({par: theta}).to_numpy()
Expand All @@ -154,7 +154,7 @@ def test_crzx(theta, seed):
try:
circuit = get_random_controlled(base_gate=RZXGate(par), seed=seed)
except TypeError:
# https:/Qiskit/qiskit-terra/issues/10311
# https:/Qiskit/qiskit/issues/10311
return
arr1 = Operator(circuit.assign_parameters([theta])).data
arr2 = symb_Operator(circuit).subs({par: theta}).to_numpy()
Expand Down

0 comments on commit 7717677

Please sign in to comment.