o
    *Î®co  ã                   @   sD   d dl mZmZmZ d dlmZ d dlmZmZ dd„ Zdd„ Z	dS )	é    )ÚDaggerÚAntiCommutatorÚqapply)Ú	FermionOp)ÚFermionFockKetÚFermionFockBrac                  C   sÖ   t dƒ} t dƒ}t| t ƒsJ ‚tt| ƒt ƒsJ ‚| jsJ ‚t| ƒjr$J ‚t dƒt ddƒks/J ‚t dƒt dƒks9J ‚t ddƒt ddƒksEJ ‚t| t| ƒƒ ¡ dksRJ ‚t| t|ƒƒ ¡ | t|ƒ t|ƒ|   ksiJ ‚d S )NÚcÚdTFé   )r   Ú
isinstancer   Úis_annihilationr   Údoit)r   r	   © r   úO/tmp/pip-target-vg8gfxp4/lib/python/sympy/physics/quantum/tests/test_fermion.pyÚtest_fermionoperator   s   
2r   c                  C   s´   t dƒ} tdƒtdƒ  ¡ dksJ ‚tdƒtdƒ  ¡ dks J ‚t| tdƒ ƒtdƒks.J ‚t| tdƒ ƒdks:J ‚tt| ƒtdƒ ƒtdƒksJJ ‚tt| ƒtdƒ ƒdksXJ ‚d S )Nr   r   r
   )r   r   r   r   r   r   )r   r   r   r   Útest_fermion_states   s     r   N)
Úsympy.physics.quantumr   r   r   Úsympy.physics.quantum.fermionr   r   r   r   r   r   r   r   r   Ú<module>   s
    